Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davejcameron committed Aug 3, 2023
1 parent d6e2f82 commit e28c297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@ const Template = (args) => (
</Provider>
);

export const ProductDiscount = Template.bind({});
ProductDiscount.args = {
discountClass: DiscountClass.Product,
discountDescriptor: 'My cool product discount',
};

export const OrderDiscount = Template.bind({});
OrderDiscount.args = {
discountClass: DiscountClass.Order,
discountDescriptor: 'My cool order discount',
};

export const ShippingDiscount = Template.bind({});
ShippingDiscount.args = {
discountClass: DiscountClass.Shipping,
discountDescriptor: 'My cool shipping discount',
};
export const ProductDiscount = (args) => <Template discountDescriptor="My cool product discount" {...args} discountClass={DiscountClass.Product} />
export const OrderDiscount = (args) => <Template discountDescriptor="My cool order discount" {...args} discountClass={DiscountClass.Order} />
export const ShippingDiscount = (args) => <Template discountDescriptor="My cool shipping discount" {...args} discountClass={DiscountClass.Shipping} />
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ export default function CombinationCardPattern({discountClass, discountDescripto
</Page>
);
}

CombinationCardPattern.defaultProps = {
discountClass: DiscountClass.Product,
discountDescriptor: "My cool discount",
};

0 comments on commit e28c297

Please sign in to comment.