Skip to content

Commit d8ce9db

Browse files
committed
feat(navBar): add MyDataIcon component and update navigation item
1 parent b07fbb9 commit d8ce9db

File tree

2 files changed

+43
-38
lines changed

2 files changed

+43
-38
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
const MyDataIcon = ({ size = 20, className = '' }) => (
2+
<svg
3+
width={size}
4+
height={size}
5+
viewBox="0 0 20 21"
6+
fill="none"
7+
xmlns="http://www.w3.org/2000/svg"
8+
className={className}
9+
>
10+
<path
11+
d="M8.1599 1.88916H3.0399C2.68644 1.88916 2.3999 2.6055 2.3999 3.48916V6.68916C2.3999 7.57281 2.68644 8.28916 3.0399 8.28916H8.1599C8.51336 8.28916 8.7999 7.57281 8.7999 6.68916V3.48916C8.7999 2.6055 8.51336 1.88916 8.1599 1.88916Z"
12+
stroke="currentColor"
13+
strokeWidth="2"
14+
strokeLinecap="round"
15+
strokeLinejoin="round"
16+
/>
17+
<path
18+
d="M17.76 1.88916H12.64C12.2865 1.88916 12 2.6055 12 3.48916V6.68916C12 7.57281 12.2865 8.28916 12.64 8.28916H17.76C18.1135 8.28916 18.4 7.57281 18.4 6.68916V3.48916C18.4 2.6055 18.1135 1.88916 17.76 1.88916Z"
19+
stroke="currentColor"
20+
strokeWidth="2"
21+
strokeLinecap="round"
22+
strokeLinejoin="round"
23+
/>
24+
<path
25+
d="M8.1599 11.4893H3.0399C2.68644 11.4893 2.3999 12.2056 2.3999 13.0893V16.2893C2.3999 17.1729 2.68644 17.8893 3.0399 17.8893H8.1599C8.51336 17.8893 8.7999 17.1729 8.7999 16.2893V13.0893C8.7999 12.2056 8.51336 11.4893 8.1599 11.4893Z"
26+
stroke="currentColor"
27+
strokeWidth="2"
28+
strokeLinecap="round"
29+
strokeLinejoin="round"
30+
/>
31+
<path
32+
d="M17.76 11.4893H12.64C12.2865 11.4893 12 12.2056 12 13.0893V16.2893C12 17.1729 12.2865 17.8893 12.64 17.8893H17.76C18.1135 17.8893 18.4 17.1729 18.4 16.2893V13.0893C18.4 12.2056 18.1135 11.4893 17.76 11.4893Z"
33+
stroke="currentColor"
34+
strokeWidth="2"
35+
strokeLinecap="round"
36+
strokeLinejoin="round"
37+
/>
38+
</svg>
39+
);
40+
41+
export default MyDataIcon;

src/components/navBar/navigationItems.tsx

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,12 @@
11
import { MessageSquare } from 'react-feather';
2+
import MyDataIcon from '../icons/MyDataIcon';
23

34
// navigationItems.js
45
export const navigationItems = [
56
{
67
name: 'My data',
78
path: '/my-data',
8-
icon: (
9-
<svg
10-
width="20"
11-
height="21"
12-
viewBox="0 0 20 21"
13-
fill="none"
14-
xmlns="http://www.w3.org/2000/svg"
15-
>
16-
<path
17-
d="M8.1599 1.88916H3.0399C2.68644 1.88916 2.3999 2.6055 2.3999 3.48916V6.68916C2.3999 7.57281 2.68644 8.28916 3.0399 8.28916H8.1599C8.51336 8.28916 8.7999 7.57281 8.7999 6.68916V3.48916C8.7999 2.6055 8.51336 1.88916 8.1599 1.88916Z"
18-
stroke="currentColor"
19-
strokeWidth="2"
20-
strokeLinecap="round"
21-
strokeLinejoin="round"
22-
/>
23-
<path
24-
d="M17.76 1.88916H12.64C12.2865 1.88916 12 2.6055 12 3.48916V6.68916C12 7.57281 12.2865 8.28916 12.64 8.28916H17.76C18.1135 8.28916 18.4 7.57281 18.4 6.68916V3.48916C18.4 2.6055 18.1135 1.88916 17.76 1.88916Z"
25-
stroke="currentColor"
26-
strokeWidth="2"
27-
strokeLinecap="round"
28-
strokeLinejoin="round"
29-
/>
30-
<path
31-
d="M8.1599 11.4893H3.0399C2.68644 11.4893 2.3999 12.2056 2.3999 13.0893V16.2893C2.3999 17.1729 2.68644 17.8893 3.0399 17.8893H8.1599C8.51336 17.8893 8.7999 17.1729 8.7999 16.2893V13.0893C8.7999 12.2056 8.51336 11.4893 8.1599 11.4893Z"
32-
stroke="currentColor"
33-
strokeWidth="2"
34-
strokeLinecap="round"
35-
strokeLinejoin="round"
36-
/>
37-
<path
38-
d="M17.76 11.4893H12.64C12.2865 11.4893 12 12.2056 12 13.0893V16.2893C12 17.1729 12.2865 17.8893 12.64 17.8893H17.76C18.1135 17.8893 18.4 17.1729 18.4 16.2893V13.0893C18.4 12.2056 18.1135 11.4893 17.76 11.4893Z"
39-
stroke="currentColor"
40-
strokeWidth="2"
41-
strokeLinecap="round"
42-
strokeLinejoin="round"
43-
/>
44-
</svg>
45-
),
9+
icon: <MyDataIcon />,
4610
},
4711
{
4812
name: 'Send Messages',

0 commit comments

Comments
 (0)