diff --git a/src/components/AppNavBar/AppNavBarPresentation.js b/src/components/AppNavBar/AppNavBarPresentation.js index 4f9a2f21..675bd38f 100644 --- a/src/components/AppNavBar/AppNavBarPresentation.js +++ b/src/components/AppNavBar/AppNavBarPresentation.js @@ -8,20 +8,22 @@ import getIcon from 'common/utils/getIcon' import UserMenu from 'components/UserMenu' import { ABOUT_LINK, SUPPORT_LINK } from 'common/constants' import { useUserStore } from 'context/UserContext' +import Modal from 'components/Modal' function AppNavBarPresentation({ isHome = false, login, logout }) { let listener = null const { user } = useUserStore() - const [scrollAtTop, setscrollAtTop] = useState(true) + const [scrollAtTop, setScrollAtTop] = useState(true) const isGuest = user.isAnonymous + const [betaModalOpen, setBetaModalOpen] = useState(false) useEffect(() => { listener = document.addEventListener('scroll', () => { const scrolled = document.scrollingElement.scrollTop if (scrolled >= 60) { - setscrollAtTop(false) + setScrollAtTop(false) } else { - setscrollAtTop(true) + setScrollAtTop(true) } }) return () => { @@ -102,11 +104,54 @@ function AppNavBarPresentation({ isHome = false, login, logout }) { {getIcon('FVLogo', 'fill-current h-10')} -
+
+ + setBetaModalOpen(false)} + > +
+

+ Welcome to the new FirstVoices! +

+

+ The beta version of FirstVoices v3 is now live. +
If you are looking for the old version of FirstVoices,{' '} +
+ please click{' '} + + here + + {/* + */} + . Having issues with the new version?
+ Please contact us{' '} + + here + + {/* + */} + . +

+
+
+ {/* Menu Items */}