diff --git a/src/components/Articles/ArticlePreview.tsx b/src/components/Articles/ArticlePreview.tsx index bd32fc9..2771aec 100644 --- a/src/components/Articles/ArticlePreview.tsx +++ b/src/components/Articles/ArticlePreview.tsx @@ -7,7 +7,6 @@ import { Ionicons } from '@expo/vector-icons' import LogoRound from '@components/UI/LogoRound' import Text from '@components/UI/Text' -import Button from '@components/UI/Button' import Touchable from '@components/UI/Touchable' import { HomeStackParamList } from '@navigations/HomeNavigator' import { CategoriesStackParamList } from '@navigations/CategoriesNavigator' @@ -28,32 +27,28 @@ const ArticlePreview: React.FC = ({ article, hasImage = true, ignoreSpons const isPinned = () => !!(article.acf?.pinned && !ignoreSponsored) const defaultArticle = ( - - {hasImage && ( - - {article.featured_media ? ( - - ) : ( - - - - )} - - )} - - - - - {getLocaleLongDate(new Date(article.date_gmt))} + navigation.navigate('ArticleScreen', { postId: article.id })}> + + {hasImage && ( + + {article.featured_media ? ( + + ) : ( + + + + )} + + )} + + + + + {getLocaleLongDate(new Date(article.date_gmt))} + -