From 6dfe3cdc2d534f8d411e27819ace91bd895cd2ba Mon Sep 17 00:00:00 2001 From: Cara Barter Date: Thu, 16 Nov 2023 14:36:08 -0800 Subject: [PATCH 1/2] added missing https:// as well as added button to other navbar --- .../AppNavBar/AppNavBarPresentation.js | 2 +- src/components/NavBar/NavBarPresentation.js | 51 +++++++++++++++++-- 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/src/components/AppNavBar/AppNavBarPresentation.js b/src/components/AppNavBar/AppNavBarPresentation.js index 675bd38f..d1ffbf2e 100644 --- a/src/components/AppNavBar/AppNavBarPresentation.js +++ b/src/components/AppNavBar/AppNavBarPresentation.js @@ -130,7 +130,7 @@ function AppNavBarPresentation({ isHome = false, login, logout }) {
please click{' '} here diff --git a/src/components/NavBar/NavBarPresentation.js b/src/components/NavBar/NavBarPresentation.js index 0330cf76..fe826027 100644 --- a/src/components/NavBar/NavBarPresentation.js +++ b/src/components/NavBar/NavBarPresentation.js @@ -1,4 +1,4 @@ -import React from 'react' +import React, { useState } from 'react' import { Link } from 'react-router-dom' import PropTypes from 'prop-types' import { Transition } from '@headlessui/react' @@ -10,6 +10,7 @@ import SearchSiteForm from 'components/SearchSiteForm' import UserMenu from 'components/UserMenu' import JoinModalButton from 'components/JoinModalButton' import getIcon from 'common/utils/getIcon' +import Modal from 'components/Modal' function NavBarPresentation({ isHome, @@ -20,6 +21,7 @@ function NavBarPresentation({ siteLoading, }) { const menuData = site?.menu || {} + const [betaModalOpen, setBetaModalOpen] = useState(false) const generateMenu = (menu) => ( FirstVoices Logo {fvlogo} -
+
+ + + 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 + + {/* + */} + . +

+
+ {!isHome && ( Date: Thu, 16 Nov 2023 14:49:42 -0800 Subject: [PATCH 2/2] open in a new tab --- src/components/NavBar/NavBarPresentation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/NavBar/NavBarPresentation.js b/src/components/NavBar/NavBarPresentation.js index fe826027..c59aef8e 100644 --- a/src/components/NavBar/NavBarPresentation.js +++ b/src/components/NavBar/NavBarPresentation.js @@ -77,6 +77,8 @@ function NavBarPresentation({ please click{' '} here