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:
2026-02-21 18:53:13 +00:00
parent a18d0efc6d
commit 4859999340

View File

@@ -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>