Skip to content

Commit

Permalink
fix: apply vscode-styled-components extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna922 committed May 5, 2024
1 parent c91f655 commit 0703cdb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/Toast/Toast.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ const setToastAnimation = ($duration: ToastDuration) => {
switch ($duration) {
case 'short':
return css`
${ToastFadeIn} ${FADE_DURATION}s ease-in forwards,
${ToastFadeOut} ${FADE_DURATION}s ${SHORT_DURATION + FADE_DURATION}s ease-out forwards
animation:
${ToastFadeIn} ${FADE_DURATION}s ease-in forwards,
${ToastFadeOut} ${FADE_DURATION}s ${SHORT_DURATION + FADE_DURATION}s ease-out forwards;
`;
case 'long':
return css`
${ToastFadeIn} ${FADE_DURATION}s ease-in forwards,
${ToastFadeOut} ${FADE_DURATION}s ${LONG_DURATION + FADE_DURATION}s ease-out forwards
animation:
${ToastFadeIn} ${FADE_DURATION}s ease-in forwards,
${ToastFadeOut} ${FADE_DURATION}s ${LONG_DURATION + FADE_DURATION}s ease-out forwards;
`;
}
};
Expand Down

0 comments on commit 0703cdb

Please sign in to comment.