Skip to content

Commit

Permalink
Clean up...
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakode-akamai committed Aug 15, 2024
1 parent 6ff9572 commit 8d8660c
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const Item = ({ children }: { children?: React.ReactNode }) => (
);

const meta: Meta<typeof CheckoutBar> = {
argTypes: {
onDeploy: { action: 'onDeploy' },
},
component: CheckoutBar,
decorators: [
(Story: StoryFn) => (
Expand All @@ -22,6 +25,8 @@ const meta: Meta<typeof CheckoutBar> = {
title: 'Components/CheckoutBar',
};

export default meta;

export const Default: Story = {
args: {
calculatedPrice: 30.0,
Expand All @@ -30,39 +35,32 @@ export const Default: Story = {
onDeploy: () => alert('Deploy clicked'),
submitText: 'Submit',
},
render: (args) => <CheckoutBar {...args} />,
};

export const WithAgreement: Story = {
args: {
...Default.args,
agreement: <Item>Agreement item can go here!</Item>,
},
render: Default.render,
};

export const Disabled: Story = {
args: {
...Default.args,
disabled: true,
},
render: Default.render,
};

export const Loading: Story = {
args: {
...Default.args,
isMakingRequest: true,
},
render: Default.render,
};

export const WithFooter: Story = {
args: {
...Default.args,
footer: <Item>Footer element can go here!</Item>,
},
render: Default.render,
};

export default meta;

0 comments on commit 8d8660c

Please sign in to comment.