Skip to content

Commit

Permalink
Update references HeaderSearch to Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Sep 23, 2024
1 parent 5d751f5 commit b34ed50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const links:NavbarLinkItem[] = [
{ link: '/search.html', label: 'Search', icon: <PiMagnifyingGlass />, icon_bold: <PiMagnifyingGlassBold /> },
];

export function HeaderSearch() {
export function Navbar() {

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

Expand Down
6 changes: 3 additions & 3 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
ScrollRestoration,
useRouteError,
} from "@remix-run/react";
import { HeaderSearch } from "./components/HeaderSearch";
import { Footer } from "./components/Footer";
import { Navbar } from "~/components/Navbar";
import { Footer } from "~/components/Footer";

export function Layout({ children }: { children: React.ReactNode }) {
return (
Expand All @@ -33,7 +33,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
</style>
</head>
<body>
<HeaderSearch />
<Navbar />
<div className="container-lg">
{children}
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MetaFunction } from "@remix-run/node";
import { isRouteErrorResponse, Link as RemixLink, Links, Meta, Scripts, useRouteError } from "@remix-run/react";

import { HeaderSearch } from "~/components/HeaderSearch/HeaderSearch";
import { Navbar } from "~/components/Navbar";
import { Footer } from "~/components/Footer";

export const meta: MetaFunction = () => {
Expand Down Expand Up @@ -32,7 +32,7 @@ export function ErrorBoundary() {
<Links />
</head>
<body>
<HeaderSearch />
<Navbar />
<div className="container-lg">
<h1>xx
{isRouteErrorResponse(error)
Expand Down

0 comments on commit b34ed50

Please sign in to comment.