Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit ea613ba

Browse files
authored
πŸ’„ Style: 검색λͺ¨λ“œ μ •λ ¬μˆœμ„œ λ³€κ²½ (#36)
1 parent c71ba34 commit ea613ba

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

β€Žsrc/app/page.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Home = () => {
4545
const [recentSearches, setRecentSearches] = useState([]);
4646
const [searchBarProps, setSearchBarProps] = useState({
4747
initialQuery: '',
48-
initialMode: 'keyword',
48+
initialMode: 'natural',
4949
initialType: 'symptom'
5050
});
5151
const searchBarRef = useRef(null);

β€Žsrc/components/SearchBar.jsβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -307,29 +307,29 @@ const updateCache = (prevCache, key, value) => {
307307
<div className="flex mb-4 border-b border-gray-200">
308308
<button
309309
className={`px-8 py-3 font-medium transition-all ${
310-
searchMode === 'keyword'
311-
? 'text-[#2BA89C] border-b-2 border-[#2BA89C]'
312-
: 'text-gray-500 hover:text-[#2BA89C]'
310+
searchMode === 'natural'
311+
? 'text-[#2978F2] border-b-2 border-[#2978F2]'
312+
: 'text-gray-500 hover:text-[#2978F2]'
313313
}`}
314314
onClick={() => {
315-
setSearchMode('keyword');
315+
setSearchMode('natural');
316316
setSearchQuery('');
317317
}}
318318
>
319-
ν‚€μ›Œλ“œ
319+
μžμ—°μ–΄
320320
</button>
321321
<button
322322
className={`px-8 py-3 font-medium transition-all ${
323-
searchMode === 'natural'
324-
? 'text-[#2978F2] border-b-2 border-[#2978F2]'
325-
: 'text-gray-500 hover:text-[#2978F2]'
323+
searchMode === 'keyword'
324+
? 'text-[#2BA89C] border-b-2 border-[#2BA89C]'
325+
: 'text-gray-500 hover:text-[#2BA89C]'
326326
}`}
327327
onClick={() => {
328-
setSearchMode('natural');
328+
setSearchMode('keyword');
329329
setSearchQuery('');
330330
}}
331331
>
332-
μžμ—°μ–΄
332+
ν‚€μ›Œλ“œ
333333
</button>
334334
</div>
335335
)}

0 commit comments

Comments
Β (0)