From 50c499601e8a962ac5769d29123fe2b7686cbb15 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 29 Jan 2024 11:57:56 +0700 Subject: [PATCH] fix: highlight menu dropdown server options --- web/screens/LocalServer/index.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/web/screens/LocalServer/index.tsx b/web/screens/LocalServer/index.tsx index 1a954c692..0964b7e25 100644 --- a/web/screens/LocalServer/index.tsx +++ b/web/screens/LocalServer/index.tsx @@ -73,6 +73,8 @@ const LocalServerScreen = () => { const [host, setHost] = useAtom(hostAtom) const [port, setPort] = useAtom(portAtom) + const hostOptions = ['127.0.0.1', '0.0.0.0'] + const FIRST_TIME_VISIT_API_SERVER = 'firstTimeVisitAPIServer' const [firstTimeVisitAPIServer, setFirstTimeVisitAPIServer] = @@ -166,8 +168,19 @@ const LocalServerScreen = () => { - 127.0.0.1 - 0.0.0.0 + {hostOptions.map((option, i) => { + return ( + + {option} + + ) + })}