[IMPROVE] - fix some notes during code review

This commit is contained in:
AlexAlexandre 2021-07-28 14:43:32 -03:00
parent 107d4da851
commit c6e7826500
4 changed files with 4 additions and 12 deletions

View File

@ -169,7 +169,7 @@ const ActionSheet = React.memo(forwardRef(({ children, theme }: {children: JSX.E
]}
/>
</TapGestureHandler>
<ScrollBottomSheet<any>
<ScrollBottomSheet
testID='action-sheet'
ref={bottomSheetRef}
componentType='FlatList'
@ -187,7 +187,7 @@ const ActionSheet = React.memo(forwardRef(({ children, theme }: {children: JSX.E
// FlatList props
data={data?.options}
renderItem={renderItem}
keyExtractor={item => item.title}
keyExtractor={(item: any) => item.title}
style={{ backgroundColor: themes[theme].focusedBackground }}
contentContainerStyle={styles.content}
ItemSeparatorComponent={List.Separator}

View File

@ -119,11 +119,4 @@ const Avatar = React.memo(({
);
});
// Avatar.defaultProps = {
// text: '',
// size: 25,
// type: 'd',
// borderRadius: 4
// };
export default Avatar;

View File

@ -33,9 +33,7 @@ const OrSeparator = React.memo(({ theme }: IOrSeparator) => {
return (
<View style={styles.container}>
<View style={[styles.line, line]} />
{/*TODO - see if this line is wrong, probably the correct is styles.text.marginRight*/}
{/*@ts-ignore*/}
<Text style={[styles.text, styles.marginRight, styles.marginLeft, text]}>{I18n.t('OR')}</Text>
<Text style={[styles.text, text]}>{I18n.t('OR')}</Text>
<View style={[styles.line, line]} />
</View>
);

View File

@ -6,3 +6,4 @@ declare module 'react-native-image-progress';
declare module 'react-native-platform-touchable';
declare module 'react-native-ui-lib/keyboard';
declare module '@rocket.chat/ui-kit';
declare module 'react-native-config-reader';