Merge pull request #27 from rede5/codex/block-marketplace-search-route
Block marketplace /search route by redirecting to /dashboard
This commit is contained in:
commit
8b4304b910
1 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import { Navigate, Route, Routes } from 'react-router-dom'
|
||||
import { LoginPage } from './pages/Login'
|
||||
import ProductSearch from './pages/ProductSearch'
|
||||
import { DashboardPage } from './pages/Dashboard'
|
||||
import { CartPage } from './pages/Cart'
|
||||
import { CheckoutPage } from './pages/Checkout'
|
||||
|
|
@ -79,8 +78,8 @@ function App() {
|
|||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
<Route path="/search" element={<ProductSearch />} />
|
||||
<Route path="*" element={<Navigate to="/search" />} />
|
||||
<Route path="/search" element={<Navigate to="/dashboard" replace />} />
|
||||
<Route path="*" element={<Navigate to="/dashboard" replace />} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue