add location route

This commit is contained in:
NCanggoro 2023-09-17 20:39:19 +07:00
parent 5cdf8624d6
commit 925a0f2922
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,11 @@
function LocationDetail() {
return(
<>
<div>
LOCATION DETAIL
</div>
</>
)
}
export default LocationDetail;

View File

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