Skip to content

Commit

Permalink
fix: hide welcome card on outside click
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorien Grönwald committed Jul 1, 2024
1 parent 2a70901 commit d6891f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tsx/components/cards/WelcomeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ const WelcomeCard: React.FC<WelcomeCardProps> = ({ onClose, handleStartAnmiation
const [isVisible, setIsVisible] = useState(false);

const ref = useOutsideClick(() => {
if (isVisible) onClose();
if (isVisible) {
onClose();
setIsVisible(false);
}

});

const handleHideWelcomeCard = () => {
Expand Down

0 comments on commit d6891f3

Please sign in to comment.