Skip to content

Commit

Permalink
hide webinar notice when on FTC tab
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Oct 14, 2024
1 parent 6e7e26a commit 6942ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/js/src/dashboard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ const App = () => {
enterFrom="yst-opacity-0"
enterTo="yst-opacity-100"
>
<div>
{ pathname !== "/first-time-configuration" && <div>
{ shouldShowWebinarPromotionNotificationInDashboard( STORE_NAME ) &&
<WebinarPromoNotification store={ STORE_NAME } url={ webinarIntroSettingsUrl } image={ null } />
}
{ pathname !== "/first-time-configuration" && notices.length > 0 && <div className="yst-space-y-3 yoast-new-dashboard-notices"> {
{ notices.length > 0 && <div className="yst-space-y-3 yoast-new-dashboard-notices"> {
notices.map( ( notice, index ) => (
<Notice
key={ index }
Expand All @@ -125,7 +125,7 @@ const App = () => {
) )
}
</div> }
</div>
</div> }
<Routes>
<Route path="/" element={ <AlertCenter /> } />
<Route path="/first-time-configuration" element={ <FirstTimeConfiguration /> } />
Expand Down

0 comments on commit 6942ab9

Please sign in to comment.