Skip to content

Commit

Permalink
fix: lint 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongWon-CHO committed Oct 15, 2024
1 parent 78f9e6a commit 8c0e25f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/layout/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { useState } from 'react';

import { Link } from 'react-router-dom';

import Menu from 'assets/svg/auth/menu.svg?react';
Expand All @@ -13,7 +11,7 @@ import MobileDropdown from './MobileDropdown';

function Header() {
const { isMobile } = useMediaQuery();
const [view,,,, setView] = useBooleanState(false);
const [isOpen,,,, toggleIsOpen] = useBooleanState(false);

return (
<header className={styles.header}>
Expand All @@ -27,14 +25,14 @@ function Header() {
{/* <SearchIcon className={styles.search} /> */}
<button
type="button"
onClick={setView}
onClick={toggleIsOpen}
className={styles['menu-icon']}
style={{ position: 'relative' }}
aria-label="메뉴 버튼"
>
<Menu className={styles.menu} />
</button>
<MobileDropdown view={view} />
<MobileDropdown view={isOpen} />
</div>
</ul>
<Link to="/setting" />
Expand Down

0 comments on commit 8c0e25f

Please sign in to comment.