Skip to content

Commit

Permalink
fix: 타입 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielyoon7 committed Oct 25, 2023
1 parent bd646ad commit 337debb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ui/Navigator/ProfileMenu/Menus.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from 'styled-components';

import { useEffect } from 'react';
import type { PropsWithChildren } from 'react';
import { useEffect } from 'react';

import ButtonNext from '@common/ButtonNext';
import FlexBox from '@common/FlexBox';
Expand All @@ -28,7 +28,7 @@ const Menus = ({ menus, closeMenu }: Props) => {
alignItems="center"
gap={0}
css={containerCss}
onClick={(event) => event.stopPropagation()}
onClick={(event: MouseEvent) => event.stopPropagation()}
>
{menus.map(({ children, onClick }, index) => (
<FlexBox key={index} tag="li">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ProfileMenu = ({ menus }: Props) => {
};

return (
<FlexBox css={container} onClick={(event) => event.stopPropagation()}>
<FlexBox css={container} onClick={(event: MouseEvent) => event.stopPropagation()}>
{isOpen && <Menus menus={menus} closeMenu={closeProfileMenu} />}
<Button onClick={toggleOpenProfileMenu} aria-label="내 정보 메뉴 열기">
<UserCircleIcon width="2.8rem" stroke="#555" />
Expand Down

0 comments on commit 337debb

Please sign in to comment.