From 4b5e3225ed28558009c49a63c1439af22fc73e1f Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Sat, 25 Jan 2025 17:52:52 +0000 Subject: [PATCH] Added device type "invalid" --- packages/adapter-react-v5/src/Components/IconDeviceType.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/adapter-react-v5/src/Components/IconDeviceType.tsx b/packages/adapter-react-v5/src/Components/IconDeviceType.tsx index 96fa0ec6b..a77a131ba 100644 --- a/packages/adapter-react-v5/src/Components/IconDeviceType.tsx +++ b/packages/adapter-react-v5/src/Components/IconDeviceType.tsx @@ -66,6 +66,7 @@ const deviceTypes = [ 'image', 'info', 'instance', + 'invalid', 'light', 'location', 'lock', @@ -235,7 +236,7 @@ export function getDeviceIcon(type: DeviceType, props?: IconProps): React.JSX.El if (type === 'vacuumCleaner') { SvgComponent = IconVacuum as SvgIconComponent; } - if (type === 'warning') { + if (type === 'warning' || type === 'invalid') { SvgComponent = Warning; }