Fixed type icons.

This commit is contained in:
Mike Cao committed 2024-08-09 11:49:08 -07:00
1 parent 67874a6282
commit 840c1c02bf
2 files changed
+20 -4

No files matched your search

+3 -1
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}