Skip to content

Commit 58b5d49

Browse files
committed
feat: rename TopNavBar to Navbar for consistency and clarity
1 parent cb8beb0 commit 58b5d49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/navbar/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from '../ui/select.tsx';
1515
import { IexecAccount } from './IexecAccount.tsx';
1616

17-
export function TopNavBar() {
17+
export function Navbar() {
1818
const { isConnected, address } = useUserStore();
1919
const { logout, login } = useLoginLogout();
2020
const [isMenuOpen, setMenuOpen] = useState(false);

src/routes/__root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createRootRoute, Outlet } from '@tanstack/react-router';
22
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools';
3-
import { TopNavBar } from '@/components/navbar/NavBar';
3+
import { Navbar } from '@/components/navbar/NavBar';
44
import { useWatchAccount } from '@/hooks/useWatchAccount';
55

66
export const Route = createRootRoute({
@@ -12,7 +12,7 @@ function Root() {
1212

1313
return (
1414
<div className="mx-auto mb-20 w-full px-6 md:px-10 lg:px-20">
15-
<TopNavBar />
15+
<Navbar />
1616
<Outlet />
1717
<TanStackRouterDevtools />
1818
</div>

0 commit comments

Comments
 (0)