1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Correct iPad screenshots

This commit is contained in:
Zhiyuan Zheng
2022-02-04 23:13:32 +01:00
parent e7aba92f7c
commit 9a22dc9204
21 changed files with 17 additions and 30 deletions

View File

@ -85,17 +85,15 @@ const TabPublic = React.memo(
}
}) => {
const queryKey: QueryKeyTimeline = ['Timeline', { page }]
const renderItem = ({ item }: any) => {
if (timelinesLookback?.[page]?.ids?.[0] === item.id) {
return <TimelineDefault item={item} queryKey={queryKey} />
}
return <TimelineDefault item={item} queryKey={queryKey} />
}
return (
<Timeline
queryKey={queryKey}
lookback={page}
customProps={{ renderItem }}
customProps={{
renderItem: ({ item }: any) => (
<TimelineDefault item={item} queryKey={queryKey} />
)
}}
/>
)
},