Use unknown icon for generic browser
This commit is contained in:
1 parent
6672ea04f0
commit
eef10dd897
1 file changed
+3
-1
@@ -10,11 +10,13 @@ export function TypeIcon({
|
||||
value: string;
|
||||
children?: ReactNode;
|
||||
}) {
|
||||
const iconValue = type === 'browser' && value === 'browser' ? 'unknown' : value;
|
||||
|
||||
return (
|
||||
<Row gap="3" alignItems="center">
|
||||
<img
|
||||
src={`${process.env.basePath || ''}/images/${type}/${
|
||||
value?.replaceAll(' ', '-').toLowerCase() || 'unknown'
|
||||
iconValue?.replaceAll(' ', '-').toLowerCase() || 'unknown'
|
||||
}.png`}
|
||||
onError={e => {
|
||||
e.currentTarget.src = `${process.env.basePath || ''}/images/${type}/unknown.png`;
|
||||
|
||||
Reference in new issue
Block a user