chore: minor tweaks
This commit is contained in:
parent
1dc978cc88
commit
e6a05f4434
|
@ -32,6 +32,7 @@ export type ModalStackParamList = {
|
||||||
rid: string;
|
rid: string;
|
||||||
t: RoomType;
|
t: RoomType;
|
||||||
joined: boolean;
|
joined: boolean;
|
||||||
|
showCloseModal?: boolean;
|
||||||
};
|
};
|
||||||
RoomInfoView: {
|
RoomInfoView: {
|
||||||
room: IRoom;
|
room: IRoom;
|
||||||
|
|
|
@ -14,7 +14,6 @@ interface IRoomBannerProps {
|
||||||
theme: string;
|
theme: string;
|
||||||
bannerClosed: boolean;
|
bannerClosed: boolean;
|
||||||
closeBanner(): void;
|
closeBanner(): void;
|
||||||
rid?: string; // TODO - verify if this props exist
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Banner = React.memo(
|
const Banner = React.memo(
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
import { StyleSheet } from 'react-native';
|
import { StyleSheet } from 'react-native';
|
||||||
import { HeaderBackButton } from '@react-navigation/stack';
|
import { HeaderBackButton, StackNavigationProp } from '@react-navigation/stack';
|
||||||
|
|
||||||
import { themes } from '../../constants/colors';
|
import { themes } from '../../constants/colors';
|
||||||
import Avatar from '../../containers/Avatar';
|
import Avatar from '../../containers/Avatar';
|
||||||
|
import { ChatsStackParamList } from '../../stacks/types';
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
avatar: {
|
avatar: {
|
||||||
|
@ -15,7 +16,7 @@ const styles = StyleSheet.create({
|
||||||
interface IRoomLeftButtonsProps {
|
interface IRoomLeftButtonsProps {
|
||||||
tmid?: string;
|
tmid?: string;
|
||||||
unreadsCount: number;
|
unreadsCount: number;
|
||||||
navigation: any; // TODO - change this after merge react navigation
|
navigation: StackNavigationProp<ChatsStackParamList>;
|
||||||
baseUrl: string;
|
baseUrl: string;
|
||||||
userId: string;
|
userId: string;
|
||||||
token: string;
|
token: string;
|
||||||
|
|
|
@ -1238,7 +1238,6 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
<SafeAreaView style={{ backgroundColor: themes[theme].backgroundColor }} testID='room-view'>
|
<SafeAreaView style={{ backgroundColor: themes[theme].backgroundColor }} testID='room-view'>
|
||||||
<StatusBar />
|
<StatusBar />
|
||||||
<Banner
|
<Banner
|
||||||
rid={rid}
|
|
||||||
title={I18n.t('Announcement')}
|
title={I18n.t('Announcement')}
|
||||||
text={announcement}
|
text={announcement}
|
||||||
bannerClosed={bannerClosed}
|
bannerClosed={bannerClosed}
|
||||||
|
|
Loading…
Reference in New Issue