Skip to content

Commit

Permalink
Revert "Revert "fix: comments and test""
Browse files Browse the repository at this point in the history
This reverts commit b48d853.
  • Loading branch information
stanjiawang authored and cscheffauer committed Nov 19, 2024
1 parent 918634b commit 385f7ac
Show file tree
Hide file tree
Showing 2 changed files with 2,643 additions and 406 deletions.
14 changes: 9 additions & 5 deletions src/components/Text/Text.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ NewMomentumDesignTypes.parameters = {
],
};

const TypesWithTagName = MultiTemplate<TextProps>(Text).bind({});
const TypesWithTagNameSmall = MultiTemplate<TextProps>(Text).bind({});

TypesWithTagName.argTypes = { ...argTypes };
delete TypesWithTagName.argTypes.type;
TypesWithTagNameSmall.argTypes = { ...argTypes };
delete TypesWithTagNameSmall.argTypes.type;
TypesWithTagNameSmall.argTypes.tagName = {
...argTypes.tagName,
control: false,
};

TypesWithTagName.parameters = {
TypesWithTagNameSmall.parameters = {
variants: [
...Object.values(TYPES).map((type) => {
return {
Expand All @@ -77,4 +81,4 @@ TypesWithTagName.parameters = {
};


export { Example, Types, NewMomentumDesignTypes, TypesWithTagName };
export { Example, Types, NewMomentumDesignTypes, TypesWithTagNameSmall };
Loading

0 comments on commit 385f7ac

Please sign in to comment.