Skip to content

Commit 8ed1f07

Browse files
authored
💄 fix: add Windows Phone, iPadOS, BlackBerry OS, Linux OS and Chrome OS sync icons (#2139)
1 parent 4268d8b commit 8ed1f07

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/app/settings/sync/components/SystemIcon.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SiAndroid, SiApple, SiWindows11 } from '@icons-pack/react-simple-icons';
1+
import {SiAndroid, SiApple, SiBlackberry, SiGooglechrome, SiLinux, SiWindows11} from '@icons-pack/react-simple-icons';
22
import { memo } from 'react';
33

44
// TODO: 等 simple icons 修复类型,移除 ignore
@@ -7,14 +7,23 @@ const SystemIcon = memo<{ title?: string }>(({ title }) => {
77
if (!title) return;
88

99
// @ts-ignore
10-
if (['Mac OS', 'iOS'].includes(title)) return <SiApple size={32} />;
10+
if (['Mac OS', 'iOS', 'iPadOS'].includes(title)) return <SiApple size={32} />;
1111

1212
// @ts-ignore
13-
if (title === 'Windows') return <SiWindows11 size={32} />;
13+
if (['Windows'].includes(title))return <SiWindows11 size={32} />;
1414

1515
// @ts-ignore
1616
if (title === 'Android') return <SiAndroid size={32} />;
1717

18+
// @ts-ignore
19+
if (['BlackBerry'].includes(title))return <SiBlackberry size={32} />;
20+
21+
// @ts-ignore
22+
if (title === 'Linux') return <SiLinux size={32} />;
23+
24+
// @ts-ignore
25+
if (title === 'Chrome OS') return <SiGooglechrome size={32} />;
26+
1827
return null;
1928
});
2029

0 commit comments

Comments
 (0)