changed links

This commit is contained in:
2023-01-06 17:31:19 +01:00
parent 55806e1964
commit f6fa9b4a4e
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ function App() {
<ToastContainer /> <ToastContainer />
<Navbar /> <Navbar />
<Routes> <Routes>
<Route path='cart' element={<Cart />} /> <Route path='/online-shop/' element={<Home />} />
<Route path='/' element={<Home />} /> <Route path='/online-shop/cart' element={<Cart />} />
<Route path='*' element={<NotFound />} /> <Route path='*' element={<NotFound />} />
</Routes> </Routes>
<Footer /> <Footer />
+1 -1
View File
@@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
const BackHomeButton = (props) => { const BackHomeButton = (props) => {
const { text } = props; const { text } = props;
return ( return (
<Link to='/' className='back-to-home'> <Link to='/online-shop/' className='back-to-home'>
<span> <span>
<svg <svg
xmlns='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg'
+1 -1
View File
@@ -6,7 +6,7 @@ const GoToCartButton = (props) => {
<div> <div>
{text} {text}
<br /> <br />
<Link to='/cart' className='go-to-cart'> <Link to='/online-shop/cart' className='go-to-cart'>
<span>Go To Cart </span> <span>Go To Cart </span>
<span> <span>
<svg <svg
+2 -2
View File
@@ -7,10 +7,10 @@ const Navbar = () => {
return ( return (
<div className='navbar-background'> <div className='navbar-background'>
<nav className='navbar'> <nav className='navbar'>
<Link to='/' className='title'> <Link to='/online-shop/' className='title'>
React Online Shop React Online Shop
</Link> </Link>
<Link to='/cart'> <Link to='/online-shop/cart'>
<div className='nav-bag'> <div className='nav-bag'>
<svg <svg
xmlns='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg'