From b93049f7a058556b74c3bc180863b6933793d255 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 16 Dec 2017 13:57:19 +0000 Subject: [PATCH] List: filter some of the props. --- src/List.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/List.tsx b/src/List.tsx index cfc8c16..7d99942 100644 --- a/src/List.tsx +++ b/src/List.tsx @@ -54,15 +54,22 @@ export const ListSubheader = pure((props: any) => ( )); -export const ListDivider = pure((props: any) => ( -
  • -
    -
  • -)); +export const ListDivider = pure((_props: any) => { + const { + inset, + ...props, + } = _props; + return ( +
  • +
    +
  • + ); +}); export const ListItem = pure((_props: any) => { const { leftIcon, + rightIcon, primaryText, secondaryText, children,