chore: minor tweaks
This commit is contained in:
parent
1dc978cc88
commit
e6a05f4434
|
@ -32,6 +32,7 @@ export type ModalStackParamList = {
|
|||
rid: string;
|
||||
t: RoomType;
|
||||
joined: boolean;
|
||||
showCloseModal?: boolean;
|
||||
};
|
||||
RoomInfoView: {
|
||||
room: IRoom;
|
||||
|
|
|
@ -14,7 +14,6 @@ interface IRoomBannerProps {
|
|||
theme: string;
|
||||
bannerClosed: boolean;
|
||||
closeBanner(): void;
|
||||
rid?: string; // TODO - verify if this props exist
|
||||
}
|
||||
|
||||
const Banner = React.memo(
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue