Fixed type icons.

This commit is contained in:
Mike Cao 2024-08-09 11:49:08 -07:00
parent 67874a6282
commit 840c1c02bf
2 changed files with 20 additions and 4 deletions

View file

@ -12,7 +12,9 @@ export function TypeIcon({
return (
<>
<img
src={`${process.env.basePath || ''}/images/${type}/${value || 'unknown'}.png`}
src={`${process.env.basePath || ''}/images/${type}/${
value.replaceAll(' ', '-').toLowerCase() || 'unknown'
}.png`}
alt={value}
width={type === 'country' ? undefined : 16}
height={type === 'country' ? undefined : 16}