From 76f6787965292404359c8e5f8d6e57b0a4068939 Mon Sep 17 00:00:00 2001 From: yuiseki Date: Sat, 9 Nov 2024 14:54:03 +0900 Subject: [PATCH] =?UTF-8?q?InputSuggest=E3=82=B3=E3=83=B3=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=8D=E3=83=B3=E3=83=88=E3=81=A7=E3=81=AE=E3=83=9C?= =?UTF-8?q?=E3=82=BF=E3=83=B3=E8=A1=A8=E7=A4=BA=E6=9D=A1=E4=BB=B6=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=81=97=E3=80=81nextPostJson=E3=81=AE?= =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=83=E3=82=B7=E3=83=A5=E3=82=AD=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E6=97=A5=E4=BB=98=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/InputSuggest/index.tsx | 28 ++++++++++++++------------- src/utils/nextPostJson.ts | 2 +- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/components/InputSuggest/index.tsx b/src/components/InputSuggest/index.tsx index 3f09911e..faf2c34e 100644 --- a/src/components/InputSuggest/index.tsx +++ b/src/components/InputSuggest/index.tsx @@ -26,19 +26,21 @@ export const InputSuggest: React.FC<{ return (
-
- { - setSuggestMode("location"); - }} - onChange={onChangeSuggestByCurrentLocation} - /> - { - setSuggestMode("trend"); - }} - /> -
+ {!coordinates && ( +
+ { + setSuggestMode("location"); + }} + onChange={onChangeSuggestByCurrentLocation} + /> + { + setSuggestMode("trend"); + }} + /> +
+ )} {suggestMode === "location" && ( {