From d7174a0eeb8bdee33345b7ea6ca12a13050a2705 Mon Sep 17 00:00:00 2001 From: yuiseki Date: Sun, 7 Jan 2024 22:37:07 +0900 Subject: [PATCH] reorder dir --- src/app/page.tsx | 4 ++-- .../SuggestByCurrentLocation/index.tsx | 0 .../SuggestByCurrentLocation/styles.module.scss | 0 .../InputSuggest/SuggestByTrend/index.tsx | 10 ++++++++++ src/components/InputSuggest/index.tsx | 13 +++++++++++++ 5 files changed, 25 insertions(+), 2 deletions(-) rename src/components/{ => InputSuggest}/SuggestByCurrentLocation/index.tsx (100%) rename src/components/{ => InputSuggest}/SuggestByCurrentLocation/styles.module.scss (100%) create mode 100644 src/components/InputSuggest/SuggestByTrend/index.tsx create mode 100644 src/components/InputSuggest/index.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index 941f1de9..4cd3cc0c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ import { MapStyleSelector } from "@/components/MapStyleSelector"; import { fitBoundsToGeoJson } from "@/utils/map/fitBoundsToGeoJson"; import { parseInnerResJson } from "@/utils/trident/parseInnerResJson"; import { LegalNotice } from "@/components/LegalNotice"; -import { SuggestByCurrentLocation } from "@/components/SuggestByCurrentLocation"; +import { InputSuggest } from "@/components/InputSuggest"; const greetings = { en: "Welcome! I'm TRIDENT, interactive Smart Maps assistant. Could you indicate me the areas and themes you want to see as the map?", @@ -411,7 +411,7 @@ export default function Home() { ); })} {dialogueList.length === 1 && inputText.length === 0 && ( - + )}
diff --git a/src/components/SuggestByCurrentLocation/index.tsx b/src/components/InputSuggest/SuggestByCurrentLocation/index.tsx similarity index 100% rename from src/components/SuggestByCurrentLocation/index.tsx rename to src/components/InputSuggest/SuggestByCurrentLocation/index.tsx diff --git a/src/components/SuggestByCurrentLocation/styles.module.scss b/src/components/InputSuggest/SuggestByCurrentLocation/styles.module.scss similarity index 100% rename from src/components/SuggestByCurrentLocation/styles.module.scss rename to src/components/InputSuggest/SuggestByCurrentLocation/styles.module.scss diff --git a/src/components/InputSuggest/SuggestByTrend/index.tsx b/src/components/InputSuggest/SuggestByTrend/index.tsx new file mode 100644 index 00000000..37083210 --- /dev/null +++ b/src/components/InputSuggest/SuggestByTrend/index.tsx @@ -0,0 +1,10 @@ + +export const SuggestByTrend: React.FC<{ + onSelected?: (value: string) => void; +}> = ({ onSelected }) => { + return ( +
+
TODO: SuggestByTrend
+
+ ); +} \ No newline at end of file diff --git a/src/components/InputSuggest/index.tsx b/src/components/InputSuggest/index.tsx new file mode 100644 index 00000000..d9b87d50 --- /dev/null +++ b/src/components/InputSuggest/index.tsx @@ -0,0 +1,13 @@ +import { SuggestByCurrentLocation } from "./SuggestByCurrentLocation"; +import { SuggestByTrend } from "./SuggestByTrend"; + +export const InputSuggest: React.FC<{ + onSelected?: (value: string) => void; +}> = ({ onSelected }) => { + return ( +
+ + +
+ ); +} \ No newline at end of file