Skip to content

Commit

Permalink
exact added
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal-511 committed Sep 20, 2023
1 parent 2f347f2 commit f44e147
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
import { BrowserRouter as Router, Route, Routes } from "react-router-dom"
import Home from "./Components/Home"
import About from "./Components/About"
import Services from "./Components/Services"
import ContactUs from "./Components/ContactUs"
import Header from "./Components/Header"
import Template1 from "./Components/Template1"
import Template2 from "./Components/Tempelate2"
import Footer from "./Components/Footer"
function App() {

import { BrowserRouter as Router, Route, Routes, Navigate } from "react-router-dom";
import Home from "./Components/Home";
import About from "./Components/About";
import Services from "./Components/Services";
import ContactUs from "./Components/ContactUs";
import Header from "./Components/Header";
import Template1 from "./Components/Template1";
import Template2 from "./Components/Tempelate2";
import Footer from "./Components/Footer";

function App() {
return (
<Router>
<Header />

<Header />
<Routes>
<Route path="/resume-builder/" element= {<Home />} />
<Route path="/about" element= {<About />} />
<Route path="/services" element= {<Services />} />
<Route path="/contact" element= {<ContactUs />} />
<Route path="/template1" element= {<Template1 />} />
<Route path="/template2" element= {<Template2 />} />
<Route path="/resume-builder" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/services" element={<Services />} />
<Route path="/contact" element={<ContactUs />} />
<Route path="/template1" element={<Template1 />} />
<Route path="/template2" element={<Template2 />} />
{/* The following route will match exactly "/resume-builder" */}
<Route
path="/"
element={<Navigate to="/resume-builder" replace />}
/>
</Routes>
<Footer />
</Router>
)
);
}

export default App
export default App;

0 comments on commit f44e147

Please sign in to comment.