2021-02-08 23:47:20 +01:00
|
|
|
import Timeline from '@components/Timeline'
|
2023-01-04 22:39:29 +01:00
|
|
|
import { NativeStackScreenProps } from '@react-navigation/native-stack'
|
|
|
|
import { TabMeStackParamList } from '@utils/navigation/navigators'
|
2021-02-27 16:33:54 +01:00
|
|
|
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
|
2023-01-04 22:39:29 +01:00
|
|
|
import React, { useEffect } from 'react'
|
2020-11-22 00:46:23 +01:00
|
|
|
|
2023-01-04 22:39:29 +01:00
|
|
|
const TabMeFavourites: React.FC<
|
|
|
|
NativeStackScreenProps<TabMeStackParamList, 'Tab-Me-Favourites'>
|
|
|
|
> = ({ navigation }) => {
|
2022-12-24 01:18:20 +01:00
|
|
|
const queryKey: QueryKeyTimeline = ['Timeline', { page: 'Favourites' }]
|
2023-01-04 22:39:29 +01:00
|
|
|
useEffect(() => {
|
|
|
|
navigation.setParams({ queryKey: queryKey })
|
|
|
|
}, [])
|
2021-02-27 16:33:54 +01:00
|
|
|
|
2023-01-07 16:27:40 +01:00
|
|
|
return <Timeline queryKey={queryKey} />
|
2022-12-24 01:18:20 +01:00
|
|
|
}
|
2020-11-22 00:46:23 +01:00
|
|
|
|
2021-05-09 21:59:03 +02:00
|
|
|
export default TabMeFavourites
|