Skip to content

Commit

Permalink
fix:モーダルのコールバックを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KikyoNanakusa committed Mar 29, 2024
1 parent 8a2058e commit be1a6ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion typing-app/src/components/molecules/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const LoginModal: React.FC<LoginModalProps> = ({ isOpen, onClose }) => {
<ModalOverlay />
<ModalContent>
<ModalHeader>続けるにはログインが必要です</ModalHeader>
<ModalCloseButton />
<ModalBody>
<Input
placeholder="学籍番号を入力してください"
Expand Down
2 changes: 1 addition & 1 deletion typing-app/src/components/molecules/LogoutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const LogoutButton: React.FC = () => {
Logout
</Button>

<LogoutModal isOpen={isOpen} onClose={onClose} />
<LogoutModal isOpen={isOpen} onClose={onClose}/>
</>
);
};
Expand Down
2 changes: 1 addition & 1 deletion typing-app/src/components/molecules/LogoutModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LogoutModal: React.FC<LogoutModalProps> = ({ isOpen, onClose }) => {
<ModalHeader>ログアウトしました</ModalHeader>
<ModalBody>ご利用ありがとうございました。</ModalBody>
<ModalFooter>
<Button colorScheme="blue" mr={3}>
<Button colorScheme="blue" mr={3} onClick={ onClose }>
OK
</Button>
</ModalFooter>
Expand Down

0 comments on commit be1a6ac

Please sign in to comment.