[IMPROVE] - fix some notes during code review
This commit is contained in:
parent
107d4da851
commit
c6e7826500
|
@ -169,7 +169,7 @@ const ActionSheet = React.memo(forwardRef(({ children, theme }: {children: JSX.E
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</TapGestureHandler>
|
</TapGestureHandler>
|
||||||
<ScrollBottomSheet<any>
|
<ScrollBottomSheet
|
||||||
testID='action-sheet'
|
testID='action-sheet'
|
||||||
ref={bottomSheetRef}
|
ref={bottomSheetRef}
|
||||||
componentType='FlatList'
|
componentType='FlatList'
|
||||||
|
@ -187,7 +187,7 @@ const ActionSheet = React.memo(forwardRef(({ children, theme }: {children: JSX.E
|
||||||
// FlatList props
|
// FlatList props
|
||||||
data={data?.options}
|
data={data?.options}
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
keyExtractor={item => item.title}
|
keyExtractor={(item: any) => item.title}
|
||||||
style={{ backgroundColor: themes[theme].focusedBackground }}
|
style={{ backgroundColor: themes[theme].focusedBackground }}
|
||||||
contentContainerStyle={styles.content}
|
contentContainerStyle={styles.content}
|
||||||
ItemSeparatorComponent={List.Separator}
|
ItemSeparatorComponent={List.Separator}
|
||||||
|
|
|
@ -119,11 +119,4 @@ const Avatar = React.memo(({
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Avatar.defaultProps = {
|
|
||||||
// text: '',
|
|
||||||
// size: 25,
|
|
||||||
// type: 'd',
|
|
||||||
// borderRadius: 4
|
|
||||||
// };
|
|
||||||
|
|
||||||
export default Avatar;
|
export default Avatar;
|
||||||
|
|
|
@ -33,9 +33,7 @@ const OrSeparator = React.memo(({ theme }: IOrSeparator) => {
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<View style={[styles.line, line]} />
|
<View style={[styles.line, line]} />
|
||||||
{/*TODO - see if this line is wrong, probably the correct is styles.text.marginRight*/}
|
<Text style={[styles.text, text]}>{I18n.t('OR')}</Text>
|
||||||
{/*@ts-ignore*/}
|
|
||||||
<Text style={[styles.text, styles.marginRight, styles.marginLeft, text]}>{I18n.t('OR')}</Text>
|
|
||||||
<View style={[styles.line, line]} />
|
<View style={[styles.line, line]} />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
|
@ -6,3 +6,4 @@ declare module 'react-native-image-progress';
|
||||||
declare module 'react-native-platform-touchable';
|
declare module 'react-native-platform-touchable';
|
||||||
declare module 'react-native-ui-lib/keyboard';
|
declare module 'react-native-ui-lib/keyboard';
|
||||||
declare module '@rocket.chat/ui-kit';
|
declare module '@rocket.chat/ui-kit';
|
||||||
|
declare module 'react-native-config-reader';
|
||||||
|
|
Loading…
Reference in New Issue