diff --git a/src/components/CardSearch.tsx b/src/components/CardSearch.tsx index 7ea18dc..a3711b6 100644 --- a/src/components/CardSearch.tsx +++ b/src/components/CardSearch.tsx @@ -260,9 +260,11 @@ const CardSearch = () => { onChange={() => setColors({ ...colors, [color]: !active })} className="rounded border-gray-700 focus:ring-2 focus:ring-blue-500 focus:border-transparent" /> - - {color === 'W' ? '⚪' : color === 'U' ? '🔵' : color === 'B' ? '⚫' : color === 'R' ? '🔴' : color === 'G' ? '🟢' : '🟤'} - + {getManaIconPath(color) ? ( + {color} + ) : ( + {color} + )} ))} @@ -286,9 +288,11 @@ const CardSearch = () => { onChange={() => setCommanderColors({ ...commanderColors, [color]: !active })} className="rounded border-gray-700 focus:ring-2 focus:ring-blue-500 focus:border-transparent" /> - - {color === 'W' ? '⚪' : color === 'U' ? '🔵' : color === 'B' ? '⚫' : color === 'R' ? '🔴' : color === 'G' ? '🟢' : '🟤'} - + {getManaIconPath(color) ? ( + {color} + ) : ( + {color} + )} ))}