add location route
This commit is contained in:
parent
5cdf8624d6
commit
925a0f2922
11
src/pages/LocationDetail/index.tsx
Normal file
11
src/pages/LocationDetail/index.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
function LocationDetail() {
|
||||
return(
|
||||
<>
|
||||
<div>
|
||||
LOCATION DETAIL
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default LocationDetail;
|
@ -2,6 +2,7 @@ import {
|
||||
BestLocation,
|
||||
Discovery,
|
||||
Home,
|
||||
LocationDetail,
|
||||
NewsEvent,
|
||||
Story
|
||||
} from '../pages';
|
||||
@ -32,6 +33,11 @@ const routes = [
|
||||
name: "Home",
|
||||
element: <NewsEvent />
|
||||
},
|
||||
{
|
||||
path: "/location/:id",
|
||||
name: "LocationDetail",
|
||||
element: <LocationDetail />
|
||||
}
|
||||
]
|
||||
|
||||
export default routes;
|
Loading…
Reference in New Issue
Block a user