-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/stories/shared/social-share-modal/SocialShareModal.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Meta, StoryObj } from '@storybook/react' | ||
import { WithI18next } from '../../WithI18next' | ||
import { SocialShareModal } from '@/sections/shared/social-share-modal/SocialShareModal' | ||
|
||
const meta: Meta<typeof SocialShareModal> = { | ||
title: 'Sections/Shared/SocialShareModal', | ||
component: SocialShareModal, | ||
decorators: [WithI18next] | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj<typeof SocialShareModal> | ||
|
||
export const Default: Story = { | ||
render: () => ( | ||
<SocialShareModal | ||
shareUrl="https://example.com" | ||
show | ||
title="Share" | ||
helpText="Share this page with your friends" | ||
handleClose={() => {}} | ||
/> | ||
) | ||
} | ||
|
||
export const ShareCollection: Story = { | ||
render: () => ( | ||
<SocialShareModal | ||
shareUrl="https://example.com/some-collection" | ||
show | ||
title="Share Collection" | ||
helpText="Share this collection on your favorite social media networks." | ||
handleClose={() => {}} | ||
/> | ||
) | ||
} | ||
|
||
export const ShareDataset: Story = { | ||
render: () => ( | ||
<SocialShareModal | ||
shareUrl="https://example.com/some-dataset" | ||
show | ||
title="Share Dataset" | ||
helpText="Share this dataset on your favorite social media networks." | ||
handleClose={() => {}} | ||
/> | ||
) | ||
} |