From 2bb197fe4525d712a5e3fad93a611cd00ed1a0e7 Mon Sep 17 00:00:00 2001 From: WaDadidou Date: Wed, 11 Dec 2024 20:04:56 -0500 Subject: [PATCH] fix(article): fix CI --- packages/components/navigation/getNormalModeScreens.tsx | 2 +- packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx | 4 +++- .../FeedPostView/components/FeedPostArticleMarkdownView.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/components/navigation/getNormalModeScreens.tsx b/packages/components/navigation/getNormalModeScreens.tsx index d19e32342..c7145bb14 100644 --- a/packages/components/navigation/getNormalModeScreens.tsx +++ b/packages/components/navigation/getNormalModeScreens.tsx @@ -9,7 +9,7 @@ import { CoreDAOScreen } from "@/screens/CoreDAO/CoreDAOScreen"; import { DAppStoreScreen } from "@/screens/DAppStore/DAppStoreScreen"; import { ToriPunks } from "@/screens/DAppStore/apps/toripunks/HomeScreen"; import { FeedScreen } from "@/screens/Feed/FeedScreen"; -import { FeedNewArticleScreen } from "@/screens/FeedNewArticle/FeedNewArticleScreen.tsx"; +import { FeedNewArticleScreen } from "@/screens/FeedNewArticle/FeedNewArticleScreen"; import { FeedPostViewScreen } from "@/screens/FeedPostView/FeedPostViewScreen"; import { GovernanceProposalScreen } from "@/screens/Governance/GovernanceProposal/GovernanceProposalScreen"; import { GovernanceScreen } from "@/screens/Governance/GovernanceScreen"; diff --git a/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx b/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx index b76d78998..a100aef3a 100644 --- a/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx +++ b/packages/screens/FeedNewArticle/FeedNewArticleScreen.tsx @@ -129,6 +129,8 @@ export const FeedNewArticleScreen: ScreenFC<"FeedNewArticle"> = () => { mentions: [], }; + const navigateBack = () => navigation.navigate("Feed"); + const onPublish = async () => { const action = "Publish an Article"; if (!wallet?.address || !wallet.connected) { @@ -208,7 +210,7 @@ export const FeedNewArticleScreen: ScreenFC<"FeedNewArticle"> = () => { mobileTitle="NEW ARTICLE" fullWidth headerChildren={New Article} - onBackPress={() => navigation.navigate("Feed")} + onBackPress={navigateBack} footerChildren noMargin noScroll diff --git a/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx b/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx index 328077b97..56cc6fc7e 100644 --- a/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx +++ b/packages/screens/FeedPostView/components/FeedPostArticleMarkdownView.tsx @@ -163,7 +163,7 @@ export const FeedPostArticleMarkdownView: FC<{ isNextPageAvailable.value = hasNextPage; }, [hasNextPage, isNextPageAvailable]); - if (!articleMetadata) return null; + if (!articleMetadata || !message) return null; return (