Skip to content

Commit

Permalink
fix(disclosure): 🐛 fix composable export naming (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy authored Oct 5, 2021
1 parent 9ae2d73 commit d18373b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/disclosure/DisclosureButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type DisclosureButtonHTMLProps = ButtonHTMLProps;
export type DisclosureButtonProps = DisclosureButtonOptions &
DisclosureButtonHTMLProps;

export const showMoreComposableButton = createComposableHook<
export const disclosureComposableButton = createComposableHook<
DisclosureButtonOptions,
DisclosureButtonHTMLProps
>({
Expand Down Expand Up @@ -60,7 +60,7 @@ export const showMoreComposableButton = createComposableHook<
},
});

export const useDisclosureButton = showMoreComposableButton();
export const useDisclosureButton = disclosureComposableButton();

export const DisclosureButton = createComponent({
as: "button",
Expand Down
4 changes: 2 additions & 2 deletions src/disclosure/DisclosureContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type DisclosureContentHTMLProps = BoxHTMLProps;
export type DisclosureContentProps = DisclosureContentOptions &
DisclosureContentHTMLProps;

export const showMoreComposableContent = createComposableHook<
export const disclosureComposableContent = createComposableHook<
DisclosureContentOptions,
DisclosureContentHTMLProps
>({
Expand Down Expand Up @@ -228,7 +228,7 @@ export const showMoreComposableContent = createComposableHook<
},
});

export const useDisclosureContent = showMoreComposableContent();
export const useDisclosureContent = disclosureComposableContent();

export const DisclosureContent = createComponent({
as: "div",
Expand Down

0 comments on commit d18373b

Please sign in to comment.