fix: prettier

This commit is contained in:
Reinaldo Neto 2024-01-26 14:31:43 -03:00
parent 6122c71d97
commit 38341b6165
4 changed files with 5 additions and 11 deletions

View File

@ -147,7 +147,7 @@ const ChangeAvatarView = () => {
payload: { url: response.path, data: `data:image/jpeg;base64,${response.data}`, service: 'upload' }
});
} catch (error: any) {
if(error?.code !== "E_PICKER_CANCELLED") {
if (error?.code !== 'E_PICKER_CANCELLED') {
log(error);
}
}

View File

@ -139,7 +139,7 @@ class DirectoryView extends React.Component<IDirectoryViewProps, IDirectoryViewS
} else if (type === 'teams') {
logEvent(events.DIRECTORY_SEARCH_TEAMS);
}
this.toggleDropdown()
this.toggleDropdown();
};
toggleWorkspace = () => {

View File

@ -111,13 +111,7 @@ export const RoomInfoButtons = ({
iconName='ignore'
showIcon={!!renderBlockUser}
/>
<BaseButton
onPress={handleReportUser}
label={i18n.t('Report')}
iconName='warning'
showIcon={!!renderReportUser}
danger
/>
<BaseButton onPress={handleReportUser} label={i18n.t('Report')} iconName='warning' showIcon={!!renderReportUser} danger />
</View>
);
};

View File

@ -31,8 +31,8 @@ import RoomInfoViewTitle from './components/RoomInfoViewTitle';
import styles from './styles';
type TRoomInfoViewNavigationProp = CompositeNavigationProp<
StackNavigationProp<ChatsStackParamList, 'RoomInfoView'>,
StackNavigationProp<MasterDetailInsideStackParamList>
StackNavigationProp<ChatsStackParamList, 'RoomInfoView'>,
StackNavigationProp<MasterDetailInsideStackParamList>
>;
type TRoomInfoViewRouteProp = RouteProp<ChatsStackParamList, 'RoomInfoView'>;