From ce47a7433e4abbbe40fe6fe43d55cd574d0abee7 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 4 Oct 2023 15:44:24 +0100 Subject: [PATCH] Teams button in navigation --- src/components/Navigation/Navigation.astro | 25 +++++++++-- src/components/TeamMarketing/TeamDemo.tsx | 51 ++++++++++++++-------- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/src/components/Navigation/Navigation.astro b/src/components/Navigation/Navigation.astro index 2a923d897..8d999a0cb 100644 --- a/src/components/Navigation/Navigation.astro +++ b/src/components/Navigation/Navigation.astro @@ -27,9 +27,26 @@ import { AccountDropdown } from './AccountDropdown'; Questions - - Teams - +
  • + + Teams + + + + + + + + + +
  • Login
  • - + ([0]); const [activeItem, setActiveItem] = useState(demoItems[0]); + const isAuthenticated = isLoggedIn(); + return ( -
    +

    See how it works

    Here is a sneak peek of what you can do today (more coming soon!)

    @@ -71,10 +74,7 @@ export function TeamDemo() { { - setHasViewed([ - ...hasViewed, - counter - ]) + setHasViewed([...hasViewed, counter]); setActiveItem(item); }} className={cn('z-50 cursor-pointer rounded-full p-[6px]', { @@ -82,13 +82,18 @@ export function TeamDemo() { 'bg-gray-300 hover:bg-gray-400': item !== activeItem, })} /> - {!hasAlreadyViewed && } + {!hasAlreadyViewed && ( + + )} ); } return ( - + {activeItem.title} ); @@ -116,20 +121,32 @@ export function TeamDemo() {

    )}