Block marketplace search route
This commit is contained in:
parent
d79e2ffee0
commit
c11652d386
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