Skip to content

Commit 18e911e

Browse files
committed
feat: clean up
1 parent 4719ab2 commit 18e911e

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

public/devitools-logo.png

-4.12 KB
Loading

src/components/Header.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import { Button } from "@/components/ui/button";
22
import { Github, Moon, Play, Sun } from "lucide-react";
33
import { useTheme } from "next-themes";
4-
import { Link, useNavigate, useLocation } from "react-router-dom";
5-
4+
import { Link, useLocation, useNavigate } from "react-router-dom";
65

76
const Header = () => {
87
const { theme, setTheme } = useTheme();
98
const navigate = useNavigate();
109
const location = useLocation();
1110

1211
const isActiveLink = (path: string) => {
13-
return location.pathname === path || location.pathname.startsWith(path + '/');
12+
return location.pathname === path || location.pathname.startsWith(path + "/");
1413
};
1514

1615
const toggleTheme = () => {
@@ -38,42 +37,42 @@ const Header = () => {
3837
<Link
3938
to="/constructo"
4039
className={`transition-colors hover:text-primary ${
41-
isActiveLink('/constructo')
42-
? 'text-primary'
43-
: 'text-muted-foreground'
40+
isActiveLink("/constructo")
41+
? "text-primary"
42+
: "text-muted-foreground"
4443
}`}
4544
>
4645
Constructo
4746
</Link>
4847
<Link
4948
to="/serendipity"
5049
className={`transition-colors hover:text-primary ${
51-
isActiveLink('/serendipity')
52-
? 'text-primary'
53-
: 'text-muted-foreground'
50+
isActiveLink("/serendipity")
51+
? "text-primary"
52+
: "text-muted-foreground"
5453
}`}
5554
>
5655
Serendipity
5756
</Link>
5857
<Link
5958
to="/effulgence"
6059
className={`transition-colors hover:text-primary ${
61-
isActiveLink('/effulgence')
62-
? 'text-primary'
63-
: 'text-muted-foreground'
60+
isActiveLink("/effulgence")
61+
? "text-primary"
62+
: "text-muted-foreground"
6463
}`}
6564
>
6665
Effulgence
6766
</Link>
68-
<Link
69-
to="/docs"
67+
<Link
68+
to="/docs"
7069
className={`transition-colors hover:text-primary ${
71-
isActiveLink('/docs')
72-
? 'text-primary'
73-
: 'text-muted-foreground'
70+
isActiveLink("/docs")
71+
? "text-primary"
72+
: "text-muted-foreground"
7473
}`}
7574
>
76-
Todas as Soluções
75+
Documentação
7776
</Link>
7877
</nav>
7978

0 commit comments

Comments
 (0)