Skip to content

Commit 7c8d02e

Browse files
committed
fix: no icons on linux
1 parent 9419a93 commit 7c8d02e

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

src/Layout/Navbar/ColorIcons.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export const Package = () => (
44
xmlns="http://www.w3.org/2000/svg"
55
viewBox="0 0 48 48"
66
enableBackground="new 0 0 48 48"
7+
height={20}
8+
width={20}
79
>
810
<path
911
fill="#FF9800"
@@ -22,6 +24,8 @@ export const Transit = () => (
2224
xmlns="http://www.w3.org/2000/svg"
2325
viewBox="0 0 48 48"
2426
enableBackground="new 0 0 48 48"
27+
height={20}
28+
width={20}
2529
>
2630
<path
2731
fill="#FFC107"
@@ -61,6 +65,8 @@ export const DataProtection = () => (
6165
xmlns="http://www.w3.org/2000/svg"
6266
viewBox="0 0 48 48"
6367
enableBackground="new 0 0 48 48"
68+
height={20}
69+
width={20}
6470
>
6571
<g fill="#D1C4E9">
6672
<path d="M38,7H10C8.9,7,8,7.9,8,9v6c0,1.1,0.9,2,2,2h28c1.1,0,2-0.9,2-2V9C40,7.9,39.1,7,38,7z" />
@@ -80,6 +86,8 @@ export const Safe = () => (
8086
xmlns="http://www.w3.org/2000/svg"
8187
viewBox="0 0 48 48"
8288
enableBackground="new 0 0 48 48"
89+
height={20}
90+
width={20}
8391
>
8492
<rect x="8" y="39" fill="#455A64" width="6" height="3" />
8593
<rect x="34" y="39" fill="#455A64" width="6" height="3" />
@@ -122,6 +130,8 @@ export const Picture = () => (
122130
xmlns="http://www.w3.org/2000/svg"
123131
viewBox="0 0 48 48"
124132
enableBackground="new 0 0 48 48"
133+
height={20}
134+
width={20}
125135
>
126136
<path
127137
fill="#F57C00"
@@ -139,6 +149,8 @@ export const Shop = () => (
139149
xmlns="http://www.w3.org/2000/svg"
140150
viewBox="0 0 48 48"
141151
enableBackground="new 0 0 48 48"
152+
height={20}
153+
width={20}
142154
>
143155
<rect x="5" y="19" fill="#CFD8DC" width="38" height="19" />
144156
<rect x="5" y="38" fill="#B0BEC5" width="38" height="4" />
@@ -182,6 +194,8 @@ export const MindMap = () => (
182194
xmlns="http://www.w3.org/2000/svg"
183195
viewBox="0 0 48 48"
184196
enableBackground="new 0 0 48 48"
197+
height={20}
198+
width={20}
185199
>
186200
<polygon
187201
fill="#CFD8DC"
@@ -204,6 +218,8 @@ export const Binoculars = () => (
204218
xmlns="http://www.w3.org/2000/svg"
205219
viewBox="0 0 48 48"
206220
enableBackground="new 0 0 48 48"
221+
height={20}
222+
width={20}
207223
>
208224
<g fill="#37474F">
209225
<circle cx="33" cy="16" r="6" />
@@ -231,6 +247,8 @@ export const Electricity = () => (
231247
xmlns="http://www.w3.org/2000/svg"
232248
viewBox="0 0 48 48"
233249
enableBackground="new 0 0 48 48"
250+
height={20}
251+
width={20}
234252
>
235253
<path
236254
fill="#00BCD4"
@@ -245,6 +263,8 @@ export const SerialTask = () => (
245263
xmlns="http://www.w3.org/2000/svg"
246264
viewBox="0 0 48 48"
247265
enableBackground="new 0 0 48 48"
266+
height={20}
267+
width={20}
248268
>
249269
<path
250270
fill="#90CAF9"

src/Layout/Navbar/components/GroupedView.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,7 @@ export const GroupedView = ({
4848
.map((group) => {
4949
return (
5050
<Accordion.Item key={group.group} value={group.group}>
51-
<Accordion.Control
52-
icon={cloneElement(groupIcons[group.group], {
53-
size: "16px",
54-
})}
55-
styles={{
56-
icon: {
57-
height: "20px",
58-
width: "20px",
59-
},
60-
}}
61-
>
51+
<Accordion.Control icon={cloneElement(groupIcons[group.group])}>
6252
<Text size="sm">{group.group}</Text>
6353
</Accordion.Control>
6454
<Accordion.Panel>

0 commit comments

Comments
 (0)