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 />
<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 />
+1 -1
View File
@@ -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'
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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'