fix type error
This commit is contained in:
@@ -20,7 +20,7 @@ const RIGHT_NAV_MINIMAL_WIDTH = 280 + 28
|
|||||||
|
|
||||||
type LayoutProps = ScreenLayoutArgs<
|
type LayoutProps = ScreenLayoutArgs<
|
||||||
AllNavigatorParams,
|
AllNavigatorParams,
|
||||||
'MessagesConversation',
|
'Messages' | 'MessagesConversation' | 'MessagesInbox' | 'MessagesSettings',
|
||||||
{},
|
{},
|
||||||
NavigationProp
|
NavigationProp
|
||||||
>
|
>
|
||||||
@@ -43,7 +43,9 @@ function MessagesSplitViewLayout({children, navigation, route}: LayoutProps) {
|
|||||||
navigation.navigate('MessagesConversation', {conversation})
|
navigation.navigate('MessagesConversation', {conversation})
|
||||||
|
|
||||||
const selectedChat =
|
const selectedChat =
|
||||||
route.name === 'MessagesConversation'
|
route.name === 'MessagesConversation' &&
|
||||||
|
route.params &&
|
||||||
|
'conversation' in route?.params
|
||||||
? route?.params?.conversation
|
? route?.params?.conversation
|
||||||
: undefined
|
: undefined
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user