Skip to content

Commit

Permalink
Implemented User Profile Page
Browse files Browse the repository at this point in the history
  • Loading branch information
kaali001 committed Jul 26, 2024
1 parent dc795ff commit c7c138f
Show file tree
Hide file tree
Showing 17 changed files with 931 additions and 285 deletions.
13 changes: 12 additions & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import Retailer_home from "./pages/Retailer-home";
import Product from "./pages/Product";
import Cart from "./pages/Cart";
import ScrollToTop from "./components/ScrollToTop";
import UserProfile from "./pages/User-profile";
import PrivateRoute from "./components/PrivateRoute";
import './App.css'
function App() {
return (
Expand All @@ -22,6 +24,11 @@ function App() {
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
<Route path="/profile" element={
<PrivateRoute>
<UserProfile />
</PrivateRoute>
} />
<Route path="categories" element={<Categories />} />
<Route path="customize" element={<Customize />} />
<Route path="shop" element={<Shop />} />
Expand All @@ -30,7 +37,11 @@ function App() {
<Route path="designers" element={<Designer_home />} />
<Route path="about" element={<About />} />
<Route path="product" element={<Product />} />
<Route path="cart" element={<Cart />} />
<Route path="cart" element={
<PrivateRoute>
<Cart />
</PrivateRoute>
} />
<Route path="retailer" element={<Layout_retailer />}>
<Route index element={<Retailer_home />} />
</Route>
Expand Down
1 change: 1 addition & 0 deletions client/src/assets/avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions client/src/assets/empty.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/src/assets/pen-clip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/src/assets/user-pen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c7c138f

Please sign in to comment.