chore: minor tweaks

This commit is contained in:
AlexAlexandre 2021-12-08 02:19:44 -03:00
parent 1dc978cc88
commit e6a05f4434
4 changed files with 4 additions and 4 deletions

View File

@ -32,6 +32,7 @@ export type ModalStackParamList = {
rid: string;
t: RoomType;
joined: boolean;
showCloseModal?: boolean;
};
RoomInfoView: {
room: IRoom;

View File

@ -14,7 +14,6 @@ interface IRoomBannerProps {
theme: string;
bannerClosed: boolean;
closeBanner(): void;
rid?: string; // TODO - verify if this props exist
}
const Banner = React.memo(

View File

@ -1,9 +1,10 @@
import React, { useCallback } from 'react';
import { StyleSheet } from 'react-native';
import { HeaderBackButton } from '@react-navigation/stack';
import { HeaderBackButton, StackNavigationProp } from '@react-navigation/stack';
import { themes } from '../../constants/colors';
import Avatar from '../../containers/Avatar';
import { ChatsStackParamList } from '../../stacks/types';
const styles = StyleSheet.create({
avatar: {
@ -15,7 +16,7 @@ const styles = StyleSheet.create({
interface IRoomLeftButtonsProps {
tmid?: string;
unreadsCount: number;
navigation: any; // TODO - change this after merge react navigation
navigation: StackNavigationProp<ChatsStackParamList>;
baseUrl: string;
userId: string;
token: string;

View File

@ -1238,7 +1238,6 @@ class RoomView extends React.Component<IRoomViewProps, any> {
<SafeAreaView style={{ backgroundColor: themes[theme].backgroundColor }} testID='room-view'>
<StatusBar />
<Banner
rid={rid}
title={I18n.t('Announcement')}
text={announcement}
bannerClosed={bannerClosed}