Skip to content

Commit

Permalink
merging searchbox to navbar
Browse files Browse the repository at this point in the history
searchbox import fix

searchbox import 2

ts-ignore searchbox import

just work damn it
  • Loading branch information
Kerby Keith Aquino committed Sep 17, 2022
1 parent 7ab2384 commit 59e0225
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/typescript-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:

- name: Checking types
run: yarn --cwd ./app ./node_modules/.bin/tsc --noEmit

- name: Checking types (attempt 2)
run: yarn --cwd ./app tsc --noEmit

9 changes: 2 additions & 7 deletions app/src/components/base/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { useRouter } from "next/router"
import { NavbarRoot } from "./NavbarRoot"
import { LogoNav } from "./LogoNav"
import SearchBox from "../SearchBox"
import Options from "../Options"
import SearchBox from "./SearchBox"

export default function Navbar() {
const router = useRouter()

return (
<NavbarRoot>
<LogoNav />
{router.pathname === "/" || router.pathname === "/about" ? null : (
<SearchBox />
)}
<SearchBox />
<Options />
</NavbarRoot>
)
Expand Down
2 changes: 0 additions & 2 deletions app/src/components/base/Navbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export { default } from "./Navbar"
export { NavbarRoot } from "./NavbarRoot"
export { LogoNav } from "./LogoNav"
1 change: 0 additions & 1 deletion app/src/components/base/Searchbox/index.tsx

This file was deleted.

0 comments on commit 59e0225

Please sign in to comment.