Reorganize custom-feed state models and add the missing _reactKey attribute

This commit is contained in:
Paul Frazee 2023-05-17 13:52:16 -05:00
parent a2b089d315
commit b672006f7e
12 changed files with 44 additions and 38 deletions

View file

@ -12,7 +12,7 @@ import {colors, s} from 'lib/styles'
import {UserAvatar} from '../util/UserAvatar'
import {Button} from '../util/forms/Button'
import {observer} from 'mobx-react-lite'
import {AlgoItemModel} from 'state/models/feeds/algo/algo-item'
import {CustomFeedModel} from 'state/models/feeds/custom-feed'
import {useFocusEffect, useNavigation} from '@react-navigation/native'
import {NavigationProp} from 'lib/routes/types'
import {useStores} from 'state/index'
@ -28,7 +28,7 @@ const AlgoItem = observer(
showBottom = true,
reloadOnFocus = false,
}: {
item: AlgoItemModel
item: CustomFeedModel
style?: StyleProp<ViewStyle>
showBottom?: boolean
reloadOnFocus?: boolean