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 22, 2024
1 parent 800a904 commit 6f51e72
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { styled } from '@mui/material/styles';
import React from 'react';

import { Typography } from 'src/components/Typography';
Expand All @@ -10,15 +9,9 @@ import type { Meta, StoryFn, StoryObj } from '@storybook/react';
type Story = StoryObj<typeof CheckoutBar>;

const Item = ({ children }: { children?: React.ReactNode }) => (
<StyledItem>{children}</StyledItem>
<Typography sx={{ fontStyle: 'italic' }}>{children}</Typography>
);

const StyledItem = styled(Typography, {
label: 'StyledItem',
})(() => ({
fontStyle: 'italic',
}));

const defaultArgs = {
calculatedPrice: 30.0,
children: <Item>Child items can go here!</Item>,
Expand Down

0 comments on commit 6f51e72

Please sign in to comment.