Fix clashing keys

This commit is contained in:
Dan Abramov
2024-10-27 14:19:31 +00:00
parent eceb04a8cb
commit 831101787f
+2 -4
View File
@@ -560,25 +560,23 @@ export const ComposePost = ({
/> />
</Animated.ScrollView> </Animated.ScrollView>
<React.Fragment key={activePost.id}>
<SuggestedLanguage text={activePost.richtext.text} /> <SuggestedLanguage text={activePost.richtext.text} />
<ComposerPills <ComposerPills
key={activePost.id}
isReply={!!replyTo} isReply={!!replyTo}
post={activePost} post={activePost}
thread={composerState.thread} thread={composerState.thread}
dispatch={composerDispatch} dispatch={composerDispatch}
bottomBarAnimatedStyle={bottomBarAnimatedStyle} bottomBarAnimatedStyle={bottomBarAnimatedStyle}
/> />
<ComposerFooter <ComposerFooter
key={activePost.id}
post={activePost} post={activePost}
dispatch={dispatch} dispatch={dispatch}
onError={setError} onError={setError}
onEmojiButtonPress={onEmojiButtonPress} onEmojiButtonPress={onEmojiButtonPress}
onSelectVideo={asset => selectVideo(activePost.id, asset)} onSelectVideo={asset => selectVideo(activePost.id, asset)}
/> />
</React.Fragment>
</View> </View>
<Prompt.Basic <Prompt.Basic