Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed May 9, 2024
1 parent 4203fc2 commit a7d9c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Playroom/Toolbar/Toolbar.tsx
Expand Up @@ -26,6 +26,7 @@ interface Props {
}

export const toolbarItemCount = 5;
const ANIMATION_TIMEOUT = 300;

export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => {
const [
Expand Down Expand Up @@ -155,7 +156,7 @@ export default ({ themes: allThemes, widths: allWidths, snippets }: Props) => {
</div>
<CSSTransition
in={isOpen}
timeout={300}
timeout={ANIMATION_TIMEOUT}
classNames={styles.transitionStyles}
mountOnEnter
unmountOnExit
Expand Down

0 comments on commit a7d9c1c

Please sign in to comment.