From 925a0f2922871bfce0fea591d0a46a695fcf1e2e Mon Sep 17 00:00:00 2001 From: NCanggoro Date: Sun, 17 Sep 2023 20:39:19 +0700 Subject: [PATCH] add location route --- src/pages/LocationDetail/index.tsx | 11 +++++++++++ src/routes/index.tsx | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 src/pages/LocationDetail/index.tsx diff --git a/src/pages/LocationDetail/index.tsx b/src/pages/LocationDetail/index.tsx new file mode 100644 index 0000000..1e39b84 --- /dev/null +++ b/src/pages/LocationDetail/index.tsx @@ -0,0 +1,11 @@ +function LocationDetail() { + return( + <> +
+ LOCATION DETAIL +
+ + ) +} + +export default LocationDetail; \ No newline at end of file diff --git a/src/routes/index.tsx b/src/routes/index.tsx index dcd0ebb..7608f0a 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -2,6 +2,7 @@ import { BestLocation, Discovery, Home, + LocationDetail, NewsEvent, Story } from '../pages'; @@ -32,6 +33,11 @@ const routes = [ name: "Home", element: }, + { + path: "/location/:id", + name: "LocationDetail", + element: + } ] export default routes; \ No newline at end of file