Skip to content

Commit

Permalink
Merge pull request #45 from felixicaza/fix-global-components
Browse files Browse the repository at this point in the history
fix: remove Navbar and Footer component in all views
  • Loading branch information
felixicaza authored Jul 25, 2024
2 parents 0a6e90d + eeb6bcd commit 677fca3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 0 additions & 6 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@

import { Route, Routes } from 'react-router-dom'
import Chat from './components/Chat/Chat'
import Footer from './components/Footer'
import Navbar from './components/Navbar'
import Home from './pages/Home'

export default function App() {
return (
<>
<Navbar />

<Routes>
<Route>
<Route index element={<Home />} />
<Route path="/chat" element={<Chat />} />
</Route>
</Routes>

<Footer />
</>
)
}
18 changes: 12 additions & 6 deletions frontend/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import React from 'react'
import Footer from '../../components/Footer'
import Navbar from '../../components/Navbar'
import About from './components/About'
import Features from './components/Features'
import Header from './components/Header'
import Repository from './components/Repository'

const Home: React.FC = () => {
return (
<main className="container mx-auto px-4">
<Header />
<Features />
<Repository />
<About />
</main>
<>
<Navbar />
<main className="container mx-auto px-4">
<Header />
<Features />
<Repository />
<About />
</main>
<Footer />
</>
)
}

Expand Down

0 comments on commit 677fca3

Please sign in to comment.