Skip to content

Commit

Permalink
[chore] 모달 사용 및 버튼 이벤트 재정의
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-younique committed Jan 16, 2024
1 parent f14848c commit 7378fb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function RootLayout({
<StoreProvider>
<QueryProvider>
<AuthComponent>
{/* <Modal /> */}
<Modal />
<Alert />
{children}
</AuthComponent>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Modal/modal-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CONTENT = {
export default function ModalButton({ type, onClick }: IType) {
const { content, className } = CONTENT[type];

const handdleKeyup = (e: any) => {
const handdleKeyup = (e: KeyboardEvent) => {
if ((e.keyCode === 13 || e.keyCode === 27) && type !== 'cancle') {
onClick();
}
Expand Down

0 comments on commit 7378fb4

Please sign in to comment.