Skip to content

Commit

Permalink
[#17]fix: notification component
Browse files Browse the repository at this point in the history
  • Loading branch information
damla committed Apr 22, 2022
1 parent 7f6e2af commit 3d8d94d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/common/Notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ const Notification = () => {
return (
<div
id="toast-warning"
className={`absolute transition-all ease-out scale-0 duration-500 right-5 top-5 items-center shadow-md w-full max-w-xs p-4 text-gray-500 bg-slate-100 rounded-lg dark:text-gray-400 dark:bg-gray-800 ${
isVisible &&
classNames('flex transition-all ease-in scale-100 duration-500')
className={`absolute flex right-5 top-5 items-center shadow-md w-full max-w-xs p-4 text-gray-500 bg-slate-100 rounded-lg dark:text-gray-400 dark:bg-gray-800 ${
isVisible
? classNames('transition-all ease-in scale-100 duration-300')
: 'transition-transform ease-out scale-0 duration-300'
}`}
role="alert"
>
Expand Down

0 comments on commit 3d8d94d

Please sign in to comment.