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,
|
BestLocation,
|
||||||
Discovery,
|
Discovery,
|
||||||
Home,
|
Home,
|
||||||
|
LocationDetail,
|
||||||
NewsEvent,
|
NewsEvent,
|
||||||
Story
|
Story
|
||||||
} from '../pages';
|
} from '../pages';
|
||||||
@ -32,6 +33,11 @@ const routes = [
|
|||||||
name: "Home",
|
name: "Home",
|
||||||
element: <NewsEvent />
|
element: <NewsEvent />
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/location/:id",
|
||||||
|
name: "LocationDetail",
|
||||||
|
element: <LocationDetail />
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export default routes;
|
export default routes;
|
Loading…
Reference in New Issue
Block a user