This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
f469d98
commit daa1247
Showing
3 changed files
with
36 additions
and
23 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
17 changes: 0 additions & 17 deletions
17
assets/js/editor-components/external-link-card/stories/index.js
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
assets/js/editor-components/external-link-card/stories/index.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,27 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import { Story, Meta } from '@storybook/react'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import ExternalLinkCard, { ExternalLinkCardProps } from '..'; | ||
|
||
export default { | ||
title: 'WooCommerce Blocks/editor-components/ExternalLinkCard', | ||
component: ExternalLinkCard, | ||
} as Meta< ExternalLinkCardProps >; | ||
|
||
const Template: Story< ExternalLinkCardProps > = ( args ) => ( | ||
<ExternalLinkCard { ...args } /> | ||
); | ||
|
||
export const Default = Template.bind( {} ); | ||
Default.args = { | ||
description: | ||
'This is the description of the link, perhaps a bit of a longer paragraph or a summary of a blog post, or whatever could give more context', | ||
href: | ||
'https://woocommerce.com/posts/seven-tips-to-extend-holiday-sales-momentum/', | ||
title: 'Seven tips to extend holiday sales momentum', | ||
}; |