Skip to content

Commit b075679

Browse files
committed
refactor: rename SearchButton to SearchBar
1 parent a41de9a commit b075679

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { checkLogin, getUserData } from '@web/modules/auth/features/auth.utils';
1313
import { BlockTab } from './BlockTab';
1414
import { NavLinks } from './NavLinks';
1515
import { RandomSongButton } from './RandomSongButton';
16-
import { SearchButton } from './SearchButton';
16+
import { SearchBar } from './SearchBar';
1717

1818
export async function Header() {
1919
let isLogged;
@@ -50,6 +50,11 @@ export async function Header() {
5050
</picture>
5151
</div>
5252

53+
{/* Search bar */}
54+
<div className='flex-1 max-w-lg'>
55+
<SearchBar />
56+
</div>
57+
5358
{/* Icon */}
5459
<div className='flex-0 flex justify-start lg:justify-center min-w-fit'>
5560
<Link href='/'>
@@ -94,7 +99,6 @@ export async function Header() {
9499
label='About'
95100
className='bg-cyan-700 after:bg-cyan-900 before:bg-cyan-950'
96101
/>
97-
<SearchButton />
98102
<RandomSongButton />
99103
</div>
100104

apps/frontend/src/modules/shared/components/layout/SearchButton.tsx renamed to apps/frontend/src/modules/shared/components/layout/SearchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { cn } from '@web/lib/tailwind.utils';
1414
import { MusicalNote } from './MusicalNote';
1515

16-
export function SearchButton() {
16+
export function SearchBar() {
1717
const router = useRouter();
1818
const [searchQuery, setSearchQuery] = useState('');
1919
const [isOpen, setIsOpen] = useState(false);

0 commit comments

Comments
 (0)