changed links
This commit is contained in:
+2
-2
@@ -19,8 +19,8 @@ function App() {
|
||||
<ToastContainer />
|
||||
<Navbar />
|
||||
<Routes>
|
||||
<Route path='cart' element={<Cart />} />
|
||||
<Route path='/' element={<Home />} />
|
||||
<Route path='/online-shop/' element={<Home />} />
|
||||
<Route path='/online-shop/cart' element={<Cart />} />
|
||||
<Route path='*' element={<NotFound />} />
|
||||
</Routes>
|
||||
<Footer />
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
|
||||
const BackHomeButton = (props) => {
|
||||
const { text } = props;
|
||||
return (
|
||||
<Link to='/' className='back-to-home'>
|
||||
<Link to='/online-shop/' className='back-to-home'>
|
||||
<span>
|
||||
<svg
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
|
||||
@@ -6,7 +6,7 @@ const GoToCartButton = (props) => {
|
||||
<div>
|
||||
{text}
|
||||
<br />
|
||||
<Link to='/cart' className='go-to-cart'>
|
||||
<Link to='/online-shop/cart' className='go-to-cart'>
|
||||
<span>Go To Cart </span>
|
||||
<span>
|
||||
<svg
|
||||
|
||||
@@ -7,10 +7,10 @@ const Navbar = () => {
|
||||
return (
|
||||
<div className='navbar-background'>
|
||||
<nav className='navbar'>
|
||||
<Link to='/' className='title'>
|
||||
<Link to='/online-shop/' className='title'>
|
||||
React Online Shop
|
||||
</Link>
|
||||
<Link to='/cart'>
|
||||
<Link to='/online-shop/cart'>
|
||||
<div className='nav-bag'>
|
||||
<svg
|
||||
xmlns='http://www.w3.org/2000/svg'
|
||||
|
||||
Reference in New Issue
Block a user