From 5ae50651c091c90062017ad3e70d7cd86dc21932 Mon Sep 17 00:00:00 2001 From: Brett Dorrans Date: Mon, 18 Apr 2022 12:45:28 +0100 Subject: [PATCH] fix: list prop types --- src/components/list/index.tsx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/components/list/index.tsx b/src/components/list/index.tsx index f1d408e8..43690bd9 100644 --- a/src/components/list/index.tsx +++ b/src/components/list/index.tsx @@ -21,22 +21,16 @@ export interface ListProps { readonly type?: ListType; } -const Ordered: React.FC = ({ children }) => ( - - {children} - +const Ordered: React.FC = ({ ...props }) => ( + ); -const Unordered: React.FC = ({ children }) => ( - - {children} - +const Unordered: React.FC = ({ ...props }) => ( + ); -const ListItem: React.FC = ({ children }) => ( - - {children} - +const ListItem: React.FC = ({ ...props }) => ( + ); const Items: React.FC<{ items: ListItemProps[] }> = ({ items }) => (