fix: merge App.tsx routes - add /craftsmen/:id for CraftsmanProfile
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { Register } from '@/pages/Register'
|
|||||||
import { Products } from '@/pages/Products'
|
import { Products } from '@/pages/Products'
|
||||||
import { ProductDetail } from '@/pages/ProductDetail'
|
import { ProductDetail } from '@/pages/ProductDetail'
|
||||||
import { CraftsmenList } from '@/pages/CraftsmenList'
|
import { CraftsmenList } from '@/pages/CraftsmenList'
|
||||||
|
import { CraftsmanProfile } from '@/pages/CraftsmanProfile'
|
||||||
import { useAuthStore } from '@/store/auth'
|
import { useAuthStore } from '@/store/auth'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
@@ -26,6 +27,7 @@ function App() {
|
|||||||
<Route path="/products" element={<Products />} />
|
<Route path="/products" element={<Products />} />
|
||||||
<Route path="/products/:id" element={<ProductDetail />} />
|
<Route path="/products/:id" element={<ProductDetail />} />
|
||||||
<Route path="/craftsmen" element={<CraftsmenList />} />
|
<Route path="/craftsmen" element={<CraftsmenList />} />
|
||||||
|
<Route path="/craftsmen/:id" element={<CraftsmanProfile />} />
|
||||||
<Route path="*" element={<Home />} />
|
<Route path="*" element={<Home />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user