Skip to content

Commit 3ad8d0b

Browse files
refactor: refactor all navs
1 parent 05f7fa9 commit 3ad8d0b

14 files changed

Lines changed: 38 additions & 96 deletions

File tree

frontend/src/components/Navbar/index.tsx renamed to frontend/src/components/Navs/Navbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
1212
import Toolbar from "@material-ui/core/Toolbar";
1313
import { Link } from "react-router-dom";
1414
import MenuIcon from "@material-ui/icons/Menu";
15-
import { linklist } from "./linklist";
15+
import { linklist } from "../linklist";
1616

1717
const useStyles = makeStyles((theme: Theme) =>
1818
createStyles({
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import React from "react";
2+
import styles from "./style.module.css";
3+
import { Link } from "react-router-dom";
4+
import { linklist } from "../linklist";
5+
6+
const NavLinks: React.FC = () => {
7+
const styling = [
8+
styles.first,
9+
styles.sec,
10+
styles.third,
11+
styles.fourth,
12+
styles.fifth,
13+
styles.sixth,
14+
];
15+
16+
return (
17+
<>
18+
{linklist.map((e, key) => (
19+
<Link
20+
key={key}
21+
to={e.url}
22+
className={
23+
key === 0 ? `${styles.Link} ${styles.firstLink}` : `${styles.Link}`
24+
}
25+
>
26+
<li className={styling[key]}>{e.name}</li>
27+
</Link>
28+
))}
29+
</>
30+
);
31+
};
32+
33+
export default NavLinks;
File renamed without changes.

frontend/src/components/navLinks/index.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

frontend/src/components/svgbackground/index.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)