List: filter some of the props.

master
Tom Hacohen 7 years ago
parent b76ac00d78
commit b93049f7a0

@ -54,15 +54,22 @@ export const ListSubheader = pure((props: any) => (
</li> </li>
)); ));
export const ListDivider = pure((props: any) => ( export const ListDivider = pure((_props: any) => {
<li> const {
<hr className={'ListDivider ' + (props.inset ? 'ListDivider-inset' : '')} {...props} /> inset,
</li> ...props,
)); } = _props;
return (
<li>
<hr className={'ListDivider ' + (inset ? 'ListDivider-inset' : '')} {...props} />
</li>
);
});
export const ListItem = pure((_props: any) => { export const ListItem = pure((_props: any) => {
const { const {
leftIcon, leftIcon,
rightIcon,
primaryText, primaryText,
secondaryText, secondaryText,
children, children,

Loading…
Cancel
Save