diff --git a/App.tsx b/App.tsx index c9a374a..3a1e31c 100644 --- a/App.tsx +++ b/App.tsx @@ -394,16 +394,16 @@ const App: React.FC = () => { {(selectedHotspot || isAdding) && ( -
-
-
-

{isAdding ? "새 WiFi 등록" : "장소 정보"}

+
+
+
+

{isAdding ? "새 WiFi 등록" : "장소 정보"}

{isAdding ? ( -
-
+ +

등록될 위치

@@ -411,58 +411,58 @@ const App: React.FC = () => {
-
+
{(['general', 'cafe', 'restaurant'] as const).map(type => ( - ))}
-
- setFormPlaceName(e.target.value)} placeholder="장소 명칭 (예: 파스쿠찌)" className="w-full p-5 rounded-2xl bg-slate-50 font-bold outline-none border-2 border-transparent focus:border-blue-500 transition-all shadow-inner" /> - - - setFormPlaceName(e.target.value)} placeholder="장소 명칭 (예: 파스쿠찌)" className="w-full p-4 md:p-5 rounded-2xl bg-slate-50 font-bold outline-none border-2 border-transparent focus:border-blue-500 transition-all shadow-inner" /> + + +
- + ) : selectedHotspot && ( -
-
-
- {selectedHotspot.iconType === 'cafe' ? : selectedHotspot.iconType === 'restaurant' ? : } +
+
+
+ {selectedHotspot.iconType === 'cafe' ? : selectedHotspot.iconType === 'restaurant' ? : }
-

{selectedHotspot.name}

-

{selectedHotspot.ssid}

+

{selectedHotspot.name}

+

{selectedHotspot.ssid}

-
-

WiFi 비밀번호

+
+

WiFi 비밀번호

-

{showPass === selectedHotspot.id ? (selectedHotspot.password || 'OPEN') : '••••••••'}

- +

{showPass === selectedHotspot.id ? (selectedHotspot.password || 'OPEN') : '••••••••'}

+
-
-

자동 연결 QR 코드

-
- +
+

자동 연결 QR 코드

+
+
카메라로 스캔하세요
-
- - +
diff --git a/services/api.ts b/services/api.ts index 50e7245..33c8b1e 100644 --- a/services/api.ts +++ b/services/api.ts @@ -1,7 +1,7 @@ import { WiFiHotspot } from '../types'; -const API_Base_URL = 'http://localhost:3000/api/markers'; +const API_Base_URL = '/api/markers'; export const apiService = { getHotspots: async (): Promise => {