Skip to content

Commit fc3b3ce

Browse files
committed
fix: update SearchBox component to refine search functionality by changing placeholder text and adjusting query parameter for song searches
1 parent 730ffdd commit fc3b3ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/frontend/src/modules/shared/components/layout/SearchBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const SearchBox = () => {
2828
type='text'
2929
value={query}
3030
onChange={(e) => setQuery(e.target.value)}
31-
placeholder='Search for songs and users'
31+
placeholder='Search for songs'
3232
className='w-full bg-zinc-800 text-white border border-zinc-600 rounded-md p-2'
3333
/>
3434
<button
@@ -37,10 +37,10 @@ export const SearchBox = () => {
3737
const queryParam = new URLSearchParams({
3838
page: '1',
3939
limit: '20',
40-
query,
40+
q: query,
4141
});
4242

43-
router.push(`/search-user?${queryParam.toString()}`);
43+
router.push(`/search-song?${queryParam.toString()}`);
4444
}}
4545
>
4646
<FontAwesomeIcon icon={faMagnifyingGlass} />

0 commit comments

Comments
 (0)