Skip to content

Commit e10d6a8

Browse files
committed
Fix routing issues
1 parent ae777a2 commit e10d6a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/App/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function App() {
1919
<Route path=":id" element={<PageOrder />} />
2020
</Route>
2121
<Route path="admin/products" element={<PageProductImport />} />
22-
<Route path="product-form">
22+
<Route path="admin/product-form">
2323
<Route index element={<PageProductForm />} />
2424
<Route path=":id" element={<PageProductForm />} />
2525
</Route>

src/components/pages/admin/PageProductImport/PageProductImport.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function PageProductImport() {
1919
variant="contained"
2020
sx={{ alignSelf: "end" }}
2121
component={Link}
22-
to={"../product-form"}
22+
to={"/admin/product-form"}
2323
>
2424
Create product
2525
</Button>

src/components/pages/admin/PageProductImport/components/ProductsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function ProductsTable() {
4747
size="small"
4848
color="primary"
4949
component={Link}
50-
to={`../product-form/${product.id}`}
50+
to={`/admin/product-form/${product.id}`}
5151
>
5252
Manage
5353
</Button>

0 commit comments

Comments
 (0)