Skip to content

Commit 4d27127

Browse files
committed
fix(ListSubheader): Removed extra props
1 parent aac4752 commit 4d27127

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
import MUIListSubheader from '@material-ui/core/ListSubheader';
1+
import { ListSubheaderProps } from '@bluebase/components';
2+
import MuiListSubheader from '@material-ui/core/ListSubheader';
3+
import { StyleSheet } from 'react-native';
4+
import { componentMapper } from '@bluebase/component-mapper';
25

3-
export const ListSubheader = MUIListSubheader;
6+
export const ListSubheader = componentMapper<ListSubheaderProps>(MuiListSubheader, {
7+
children: 'children',
8+
disableSticky: () => true,
9+
inset: 'inset',
10+
style: ({ style }: ListSubheaderProps) => StyleSheet.flatten(style),
11+
});

0 commit comments

Comments
 (0)