From 5f415dc86d72adb078cbeb07bcd351cbe053e03d Mon Sep 17 00:00:00 2001 From: Muba006 <mubamuzeen0876@gmail.com> Date: Mon, 10 Mar 2025 11:48:06 +0530 Subject: [PATCH] Fix the errors and file names changes starts in capuse --- src/App.jsx | 13 ++++++------- src/component/landing_page.jsx | 12 ++++++------ src/pages/Landing.jsx | 11 +++++++++++ 3 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 src/pages/Landing.jsx diff --git a/src/App.jsx b/src/App.jsx index c57872f..d9e5e6f 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,17 +1,16 @@ import React from "react"; -import Landing_page from "./component/landing_page"; +import Landing from "./pages/Landing"; import Seller_login from "./pages/seller_login"; -import { Router, Route, Routes } from "react-router-dom"; +import { Route, Routes } from "react-router-dom"; function App() { return ( <> - <Router> - <Routes> + <Routes> <Route path="/seller-login" element={<Seller_login />} /> - </Routes> - </Router> - <Landing_page /> + <Route path="/" element={<Landing />} /> + </Routes> + </> ); diff --git a/src/component/landing_page.jsx b/src/component/landing_page.jsx index 4767753..7a878cf 100644 --- a/src/component/landing_page.jsx +++ b/src/component/landing_page.jsx @@ -1,10 +1,10 @@ import React from "react"; -import Navbar from "./navbar"; -import Trusted from "./trustedby"; -import Bento from "./bentobox"; -import Enquire from "./enquire"; -import Contact from "./contact"; -import Footer from "./footer"; +import Navbar from "./Navbar"; +import Trusted from "./Trustedby"; +import Bento from "./Bentobox"; +import Enquire from "./Enquire"; +import Contact from "./Contact"; +import Footer from "./Footer"; function Landing_page() { return ( diff --git a/src/pages/Landing.jsx b/src/pages/Landing.jsx new file mode 100644 index 0000000..23f4cf3 --- /dev/null +++ b/src/pages/Landing.jsx @@ -0,0 +1,11 @@ +import React from 'react' +import Landing_page from '../component/landing_page' +const Landing = () => { + return ( + <div> + <Landing_page /> + </div> + ) +} + +export default Landing -- GitLab