Skip to content

Commit 71cb8d8

Browse files
feat: remove useless dependencies, replace <GitHubIcon/> by img tag
1 parent 112e538 commit 71cb8d8

File tree

4 files changed

+36
-42
lines changed

4 files changed

+36
-42
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"preview": "vite preview"
1212
},
1313
"dependencies": {
14-
"@emotion/react": "^11.14.0",
15-
"@emotion/styled": "^11.14.0",
16-
"@mui/icons-material": "^6.4.8",
1714
"@mui/material": "^6.4.8",
1815
"devicon": "^2.16.0",
1916
"react": "^19.0.0",

pnpm-lock.yaml

Lines changed: 29 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/layout/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AppBar, Toolbar, Typography } from '@mui/material'
22
import { Link, Outlet } from 'react-router'
3-
import GitHubIcon from '@mui/icons-material/GitHub'
3+
import githubIcon from '@/assets/github.svg'
44
import '@/styles/layout/navbar.css'
55

66
export const Navbar = () => {
@@ -9,7 +9,7 @@ export const Navbar = () => {
99
<AppBar position="relative">
1010
<Toolbar>
1111
<Link to="/" className="navbar-link">
12-
<GitHubIcon />
12+
<img src={githubIcon} alt="Gitcoin" />
1313
<Typography variant="h6" color="inherit" noWrap>
1414
Gitclicker
1515
</Typography>

src/styles/layout/navbar.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44
gap: 1rem;
55
color: white;
66
text-decoration: none;
7+
8+
img {
9+
width: 2rem;
10+
height: 2rem;
11+
}
712
}

0 commit comments

Comments
 (0)