Skip to content

Commit

Permalink
reorder dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Jan 7, 2024
1 parent 763f40c commit d7174a0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand Down Expand Up @@ -411,7 +411,7 @@ export default function Home() {
);
})}
{dialogueList.length === 1 && inputText.length === 0 && (
<SuggestByCurrentLocation onSelected={onSelectedSuggestions} />
<InputSuggest onSelected={onSelectedSuggestions} />
)}
<div style={{ height: "1px" }} ref={dialogueEndRef} />
</div>
Expand Down
10 changes: 10 additions & 0 deletions src/components/InputSuggest/SuggestByTrend/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

export const SuggestByTrend: React.FC<{
onSelected?: (value: string) => void;
}> = ({ onSelected }) => {
return (
<div>
<div>TODO: SuggestByTrend</div>
</div>
);
}
13 changes: 13 additions & 0 deletions src/components/InputSuggest/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { SuggestByCurrentLocation } from "./SuggestByCurrentLocation";
import { SuggestByTrend } from "./SuggestByTrend";

export const InputSuggest: React.FC<{
onSelected?: (value: string) => void;
}> = ({ onSelected }) => {
return (
<div>
<SuggestByCurrentLocation onSelected={onSelected} />
<SuggestByTrend onSelected={onSelected} />
</div>
);
}

0 comments on commit d7174a0

Please sign in to comment.