Skip to content

Commit

Permalink
fix: used a constant for openClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandrshy committed Jul 2, 2020
1 parent 07138e6 commit 0fc3dc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const SCROLL_STATE = {
} as const;

export const CLASS_NAMES = {
IS_OPEN: 'isOpen',
IS_OPENING: 'isOpening',
IS_CLOSING: 'isClosing',
} as const;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Keukenhof = ((): KeukenhofType => {
triggers = [],
openAttribute = ATTRIBUTES.OPEN,
closeAttribute = ATTRIBUTES.CLOSE,
openClass = 'isOpen',
openClass = CLASS_NAMES.IS_OPEN,
hasAnimation = false,
scrollBehavior = {},
onOpen = () => {},
Expand Down

0 comments on commit 0fc3dc1

Please sign in to comment.