diff --git a/src/components/Menu/Menu.tsx b/src/components/Menu/Menu.tsx index 6685dcef7..5e0ae6483 100644 --- a/src/components/Menu/Menu.tsx +++ b/src/components/Menu/Menu.tsx @@ -341,6 +341,21 @@ const Menu = ( ) => { + + navigation.navigate( "TabNavigator", { + screen: "MenuTab", + params: { + screen: "News", + }, + } )} + /> + + {modalState === MenuModalState.ConfirmLogout && ( setModalState( null )} diff --git a/src/components/News/News.tsx b/src/components/News/News.tsx new file mode 100644 index 000000000..3ceb91243 --- /dev/null +++ b/src/components/News/News.tsx @@ -0,0 +1,10 @@ +import { View } from "components/styledComponents"; +import React from "react"; + +const News = ( ) => ( + + {null} + +); + +export default News; diff --git a/src/i18n/l10n/en.ftl b/src/i18n/l10n/en.ftl index d204f3c88..ddecca2b9 100644 --- a/src/i18n/l10n/en.ftl +++ b/src/i18n/l10n/en.ftl @@ -786,6 +786,7 @@ Needs-ID--quality-grade = Needs ID New-Observation = New Observation # Sort order, refers to newest or oldest date Newest-to-oldest = Newest to oldest +NEWS = NEWS Next-observation = Next observation # Accessibility label for a button that goes to the next slide on onboarding cards Next-slide = Next slide diff --git a/src/i18n/l10n/en.ftl.json b/src/i18n/l10n/en.ftl.json index 71f3b0506..b5edabfa1 100644 --- a/src/i18n/l10n/en.ftl.json +++ b/src/i18n/l10n/en.ftl.json @@ -459,6 +459,7 @@ "Needs-ID--quality-grade": "Needs ID", "New-Observation": "New Observation", "Newest-to-oldest": "Newest to oldest", + "NEWS": "NEWS", "Next-observation": "Next observation", "Next-slide": "Next slide", "No-Camera-Available": "No Camera Available", diff --git a/src/i18n/strings.ftl b/src/i18n/strings.ftl index d204f3c88..37535a926 100644 --- a/src/i18n/strings.ftl +++ b/src/i18n/strings.ftl @@ -789,6 +789,7 @@ Newest-to-oldest = Newest to oldest Next-observation = Next observation # Accessibility label for a button that goes to the next slide on onboarding cards Next-slide = Next slide +NEWS = NEWS # Error message when no camera can be found No-Camera-Available = No Camera Available # Alert dialog title when attempting to send email but no email is installed diff --git a/src/navigation/StackNavigators/TabStackNavigator.tsx b/src/navigation/StackNavigators/TabStackNavigator.tsx index 78e48c469..b6cc5007d 100644 --- a/src/navigation/StackNavigators/TabStackNavigator.tsx +++ b/src/navigation/StackNavigators/TabStackNavigator.tsx @@ -13,6 +13,7 @@ import RootExploreContainer from "components/Explore/RootExploreContainer"; import Help from "components/Help/Help"; import Menu from "components/Menu/Menu"; import MyObservationsContainer from "components/MyObservations/MyObservationsContainer"; +import News from "components/News/News"; import Notifications from "components/Notifications/Notifications"; import DQAContainer from "components/ObsDetails/DQAContainer"; import ObsDetailsContainer from "components/ObsDetails/ObsDetailsContainer"; @@ -64,6 +65,11 @@ const helpTitle = () => ( {t( "HELP" )} ); +const newsTitle = () => ( + + {t( "NEWS" )} + +); const dqaTitle = () => ( {t( "DATA-QUALITY-ASSESSMENT" )} @@ -112,6 +118,7 @@ const FadeInSettings = ( ) => fadeInComponent( ); const FadeInHelp = ( ) => fadeInComponent( ); const FadeInAbout = ( ) => fadeInComponent( ); const FadeInDonate = ( ) => fadeInComponent( ); +const FadeInNews = ( ) => fadeInComponent( ); const FadeInProjectList = ( ) => fadeInComponent( ); const FadeInFollowersList = ( ) => fadeInComponent( ); const FadeInFollowingList = ( ) => fadeInComponent( ); @@ -358,6 +365,13 @@ const TabStackNavigator = ( { route }: BottomTabProps ) => { headerTitle: helpTitle, }} /> + );