Fixes Missing icon for "(Unknown)"

This commit is contained in:
Yash 2025-08-11 15:09:35 +05:30
parent 60eaaaff60
commit 1434a51516
4 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 8.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 8.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 8.1 KiB

Before After
Before After

View file

@ -9,6 +9,9 @@ export function TypeIcon({
value: string; value: string;
children?: ReactNode; children?: ReactNode;
}) { }) {
if (value === undefined) {
value = 'unknown';
}
return ( return (
<> <>
<img <img
@ -19,8 +22,8 @@ export function TypeIcon({
e.currentTarget.src = `${process.env.basePath || ''}/images/${type}/unknown.png`; e.currentTarget.src = `${process.env.basePath || ''}/images/${type}/unknown.png`;
}} }}
alt={value} alt={value}
width={type === 'country' ? undefined : 16} width={16}
height={type === 'country' ? undefined : 16} height={16}
/> />
{children} {children}
</> </>