Fix Soy Icon
This commit is contained in:
@@ -8,13 +8,14 @@ import CloseIcon from '@mui/icons-material/Close';
|
||||
import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';
|
||||
import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
|
||||
import RemoveIcon from '@mui/icons-material/Remove';
|
||||
import { GiSunflower, GiWheat, GiCorn, GiGrain } from "react-icons/gi";
|
||||
import { GiSunflower, GiWheat, GiCorn, GiGrainBundle } from "react-icons/gi";
|
||||
import { TbGrain } from "react-icons/tb";
|
||||
|
||||
import type { CotizacionGrano } from '../models/mercadoModels';
|
||||
import { useApiData } from '../hooks/useApiData';
|
||||
import { formatInteger, formatDateOnly } from '../utils/formatters';
|
||||
import { GrainsHistoricalChartWidget } from './GrainsHistoricalChartWidget';
|
||||
import { LuBean } from 'react-icons/lu';
|
||||
|
||||
const getGrainIcon = (nombre: string) => {
|
||||
switch (nombre.toLowerCase()) {
|
||||
@@ -22,7 +23,8 @@ const getGrainIcon = (nombre: string) => {
|
||||
case 'trigo': return <GiWheat size={28} color="#fbc02d" />;
|
||||
case 'sorgo': return <TbGrain size={28} color="#fbc02d" />;
|
||||
case 'maiz': return <GiCorn size={28} color="#fbc02d" />;
|
||||
default: return <GiGrain size={28} color="#fbc02d" />;
|
||||
case 'soja': return <LuBean size={28} color="#fbc02d" />;
|
||||
default: return <GiGrainBundle size={28} color="#fbc02d" />;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user