diff --git a/src/Root.tsx b/src/Root.tsx index 20dffee..a03000f 100644 --- a/src/Root.tsx +++ b/src/Root.tsx @@ -5,6 +5,7 @@ import { Route, Routes, } from 'react-router-dom'; +import { Toaster } from 'react-hot-toast'; import App from './App'; import CatalogPage from './pages/CatalogPage'; import NotFoundPage from './pages/NotFoundPage'; @@ -13,7 +14,7 @@ import ScrollToTop from './components/ScrollToTop'; import FavouritesPage from './pages/FavouritesPage'; import CartPage from './pages/CartPage'; import HomePage from './pages/HomePage'; -import { Toaster } from 'react-hot-toast'; +import ContactsPage from './pages/ContactsPage'; export const Root = () => ( @@ -37,6 +38,7 @@ export const Root = () => ( } /> } /> + } /> } /> diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 993ff6f..35ec0fc 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -34,12 +34,12 @@ export const Footer = () => {
  • - Contacts - +
  • diff --git a/src/pages/CartPage.tsx b/src/pages/CartPage.tsx index 96f9c3c..2cbb7f6 100644 --- a/src/pages/CartPage.tsx +++ b/src/pages/CartPage.tsx @@ -1,18 +1,17 @@ import classNames from 'classnames'; -import React, { useState } from 'react'; -import { FiChevronLeft } from 'react-icons/fi'; -import { NavLink, useNavigate } from 'react-router-dom'; +import { useState } from 'react'; +import { NavLink } from 'react-router-dom'; import { Button } from '../components/Button'; import CartItem from '../components/CartItem'; import { CheckoutModal } from '../components/CheckoutModal'; import { clearCart, useAppDispatch, useAppSelector } from '../redux'; import { getTotalProductsCost } from '../utils/getTotalCost'; import { getTotalItemsCount } from '../utils/getTotalItemsCount'; +import BreadCrumb from '../components/BreadCrumb'; const CartPage = () => { const { items: cartItems } = useAppSelector((state) => state.cart); const [showModal, setShowModal] = useState(false); - const navigate = useNavigate(); const dispatch = useAppDispatch(); const totalCost = getTotalProductsCost(cartItems); @@ -36,17 +35,13 @@ const CartPage = () => { )}
    - navigate(-1)} - className="select-none cursor-pointer flex items-center gap-1 dark:text-primary-dark" - > - - Back - + + +

    Cart diff --git a/src/pages/ContactsPage.tsx b/src/pages/ContactsPage.tsx new file mode 100644 index 0000000..b32702a --- /dev/null +++ b/src/pages/ContactsPage.tsx @@ -0,0 +1,77 @@ +import BreadCrumb from '../components/BreadCrumb'; + +const ContactsPage = () => { + return ( +
    + + +
    +

    + Our Team +

    +
    + +
    +
    +

    Olena Vats

    +
    +
    +

    Olena Vats

    +
    +
    +

    Olena Vats

    +
    +
    +

    Olena Vats

    +
    +
    +

    Olena Vats

    +
    +
    +

    Olena Vats

    +
    +
    +
    + ); +}; + +export default ContactsPage;