Skip to content

Commit

Permalink
fix: list prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
brettdorrans committed Apr 18, 2022
1 parent e6e1629 commit 5ae5065
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/components/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,16 @@ export interface ListProps {
readonly type?: ListType;
}

const Ordered: React.FC<BoxProps> = ({ children }) => (
<Box as={'ol'} styles={orderedListStyles()}>
{children}
</Box>
const Ordered: React.FC<BoxProps> = ({ ...props }) => (
<Box as={'ol'} styles={orderedListStyles()} {...props} />
);

const Unordered: React.FC<BoxProps> = ({ children }) => (
<Box as={'ul'} styles={unorderedListStyles()}>
{children}
</Box>
const Unordered: React.FC<BoxProps> = ({ ...props }) => (
<Box as={'ul'} styles={unorderedListStyles()} {...props} />
);

const ListItem: React.FC<BoxProps> = ({ children }) => (
<Box as={'li'} styles={listItemStyles()}>
{children}
</Box>
const ListItem: React.FC<BoxProps> = ({ ...props }) => (
<Box as={'li'} styles={listItemStyles()} {...props} />
);

const Items: React.FC<{ items: ListItemProps[] }> = ({ items }) => (
Expand Down

0 comments on commit 5ae5065

Please sign in to comment.