Skip to content

Commit

Permalink
Moved Header into components, removed unwanted files
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawal-793 committed May 6, 2023
1 parent df529a4 commit e94f7be
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
3 changes: 0 additions & 3 deletions app/api/hello/route.ts

This file was deleted.

13 changes: 0 additions & 13 deletions app/head.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import './globals.css'
import { Inter } from 'next/font/google'

const inter = Inter({ subsets: ['latin'] })
import Header from './Header'
import Header from '../components/Header'
import Providers from './Providers'

export const metadata = {
Expand Down
3 changes: 1 addition & 2 deletions app/Header.tsx → components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client"
'use client'

import Navbar from "@/components/Navbar"
import Navlinks from "@/components/Navlinks"
import SearchBox from "@/components/SearchBox"
import { useState } from "react"


const Header = () => {
const [showMenu, setShowMenu] = useState(false)
const handleClick = () => {
Expand Down

0 comments on commit e94f7be

Please sign in to comment.