Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ${({ visible }) =>
- visible &&
- `
- animation-name: show;
- animation-delay: 0s;
- `};
- ${({ autoClose }) =>
- autoClose &&
- `
- animation-delay: 10s;
- animation-name: hide;
- `};
- store.dispatch(showAction()); // Sets visible to true
- setTimeout(() => {
- store.dispatch(closeAction()); // sets autoClose to true
- }, 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement