From e5b2348daf1c5235dd13cdcab6db11bfa86ef6a2 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 9 Feb 2020 11:12:48 -0800 Subject: [PATCH] new banner --- components/Announcement.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/components/Announcement.js b/components/Announcement.js index b7851fd..5c88ec4 100644 --- a/components/Announcement.js +++ b/components/Announcement.js @@ -1,15 +1,14 @@ import React from 'react' // Feature flag -const ACTIVE = false +const ACTIVE = true -const key = 'CARBON_CTA_2' +const key = 'CARBON_CTA_3' function Toast() { const [open, setState] = React.useState(false) React.useEffect(() => { - window.localStorage.removeItem('CARBON_CTA_1') window.localStorage.removeItem('CARBON_CTA_2') if (!window.localStorage.getItem(key)) { setState(true) @@ -36,13 +35,9 @@ function Toast() { return (
-

The team that created Carbon has been acquired!

— - - Read more +

Help fight the climate crisis by offsetting your carbon production

— +
+ Find out how