turn off announcement

main
Mike Fix 5 years ago
parent 0f26518d04
commit ea981b31fe

@ -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
}

Loading…
Cancel
Save