diff --git a/components/Announcement.js b/components/Announcement.js index 527c50c..5ebdab5 100644 --- a/components/Announcement.js +++ b/components/Announcement.js @@ -1,12 +1,16 @@ import React from 'react' -const key = 'CARBON_CTA_1' +// Feature flag +const ACTIVE = false + +const key = 'CARBON_CTA_2' function Toast() { const [open, setState] = React.useState(false) React.useEffect(() => { window.localStorage.removeItem('CARBON_CTA') + window.localStorage.removeItem('CARBON_CTA_1') if (!window.localStorage.getItem(key)) { setState(true) } @@ -16,6 +20,10 @@ function Toast() { return null } + if (!ACTIVE) { + return null + } + if (!open) { return null }