feat: add page items

This commit is contained in:
2026-06-24 13:13:09 +03:00
parent ddad7b577b
commit 7ca8967bc3
5 changed files with 165 additions and 3 deletions
+2
View File
@@ -8,6 +8,7 @@ import NotFoundPage from "./pages/NotFoundPage";
import Contact from "./pages/Contact";
import Cart from "./pages/Cart";
import Profile from "./pages/Profile";
import ItemPage from "./pages/ItemPage";
const PrivateRoute = ({ children }) => {
const token = localStorage.getItem("token");
@@ -37,6 +38,7 @@ export default function App() {
</PrivateRoute>
}
/>
<Route path="items/:id" element={<ItemPage />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
</BrowserRouter>