Skip to content

Instantly share code, notes, and snippets.

@dennyabrain
Last active November 11, 2019 21:28
Show Gist options
  • Save dennyabrain/5f75172f1a6e2775f2f6054365ebd3b5 to your computer and use it in GitHub Desktop.
Save dennyabrain/5f75172f1a6e2775f2f6054365ebd3b5 to your computer and use it in GitHub Desktop.
const SectionSearchWhatsappPosts = () => {
const dispatch = useDispatch();
const sectionSearchDuplicate = useSelector( state => state.sectionSearchDuplicate)
const factCheckedStoriesData = useSelector( state => state.sectionSearchFactCheckedStories)
const onSubmit = (({searchQuery) => {
dispatch(findDuplicateImages(searchQuery));
dispatch(findSimilarFactCheckedStories(searchQuery))
})
return (
<Box ... >
<MoleculeMultiModalInput onSubmit ={onSubmit}/>
<Grid ... >
<MoleculeSinglePost
visible={true}
title={'Duplicate Posts'}
data={sectionSearchDuplicate}
/>
<MoleculeMultipleLinks
title={'Also seen on'}
data={ factCheckedStoriesData }
/>
</Grid>
</Box>
)
}
export default SectionSearchWhatsappPosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment