mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Fixed type icons.
This commit is contained in:
parent
67874a6282
commit
840c1c02bf
2 changed files with 20 additions and 4 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue