Skip to content

Commit b34ed50

Browse files
committed
Update references HeaderSearch to Navbar
1 parent 5d751f5 commit b34ed50

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/components/Navbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const links:NavbarLinkItem[] = [
1212
{ link: '/search.html', label: 'Search', icon: <PiMagnifyingGlass />, icon_bold: <PiMagnifyingGlassBold /> },
1313
];
1414

15-
export function HeaderSearch() {
15+
export function Navbar() {
1616

1717
const items = links.map((link, index) => (<NavbarLink key={`key${index}`} link={link} />));
1818

app/root.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
ScrollRestoration,
88
useRouteError,
99
} from "@remix-run/react";
10-
import { HeaderSearch } from "./components/HeaderSearch";
11-
import { Footer } from "./components/Footer";
10+
import { Navbar } from "~/components/Navbar";
11+
import { Footer } from "~/components/Footer";
1212

1313
export function Layout({ children }: { children: React.ReactNode }) {
1414
return (
@@ -33,7 +33,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
3333
</style>
3434
</head>
3535
<body>
36-
<HeaderSearch />
36+
<Navbar />
3737
<div className="container-lg">
3838
{children}
3939
</div>

app/routes/_index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { MetaFunction } from "@remix-run/node";
22
import { isRouteErrorResponse, Link as RemixLink, Links, Meta, Scripts, useRouteError } from "@remix-run/react";
33

4-
import { HeaderSearch } from "~/components/HeaderSearch/HeaderSearch";
4+
import { Navbar } from "~/components/Navbar";
55
import { Footer } from "~/components/Footer";
66

77
export const meta: MetaFunction = () => {
@@ -32,7 +32,7 @@ export function ErrorBoundary() {
3232
<Links />
3333
</head>
3434
<body>
35-
<HeaderSearch />
35+
<Navbar />
3636
<div className="container-lg">
3737
<h1>xx
3838
{isRouteErrorResponse(error)

0 commit comments

Comments
 (0)