Last active
November 11, 2019 21:28
-
-
Save dennyabrain/5f75172f1a6e2775f2f6054365ebd3b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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