summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/footer.stories.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-17 18:31:21 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-17 18:31:21 +0200
commit9a186b357b32325cf77fdce39a6c6c9aff76d8a5 (patch)
treebfeb790f3cc82f753ac74c9b0130f43189502803 /src/components/organisms/layout/footer.stories.tsx
parentc77c58e18143233be042c4980a6ed08ae9beac52 (diff)
chore: listen scroll to hide/show back to top button
Diffstat (limited to 'src/components/organisms/layout/footer.stories.tsx')
-rw-r--r--src/components/organisms/layout/footer.stories.tsx21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/components/organisms/layout/footer.stories.tsx b/src/components/organisms/layout/footer.stories.tsx
index 06819da..bd5a744 100644
--- a/src/components/organisms/layout/footer.stories.tsx
+++ b/src/components/organisms/layout/footer.stories.tsx
@@ -1,5 +1,4 @@
import { ComponentMeta, ComponentStory } from '@storybook/react';
-import { IntlProvider } from 'react-intl';
import FooterComponent from './footer';
/**
@@ -9,6 +8,19 @@ export default {
title: 'Organisms/Layout',
component: FooterComponent,
argTypes: {
+ backToTopClassName: {
+ control: {
+ type: 'text',
+ },
+ description: 'Set additional classnames to the back to top button.',
+ table: {
+ category: 'Styles',
+ },
+ type: {
+ name: 'string',
+ required: false,
+ },
+ },
className: {
control: {
type: 'text',
@@ -53,13 +65,6 @@ export default {
},
},
},
- decorators: [
- (Story) => (
- <IntlProvider locale="en">
- <Story />
- </IntlProvider>
- ),
- ],
} as ComponentMeta<typeof FooterComponent>;
const Template: ComponentStory<typeof FooterComponent> = (args) => (