turn off announcement

main
Mike Fix 5 years ago
parent 3df90c7b6d
commit b54f92c3aa
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
// Feature flag // Feature flag
const ACTIVE = true const ACTIVE = false
const key = 'CARBON_CTA_2' const key = 'CARBON_CTA_2'
@ -9,8 +9,8 @@ function Toast() {
const [open, setState] = React.useState(false) const [open, setState] = React.useState(false)
React.useEffect(() => { React.useEffect(() => {
window.localStorage.removeItem('CARBON_CTA')
window.localStorage.removeItem('CARBON_CTA_1') window.localStorage.removeItem('CARBON_CTA_1')
window.localStorage.removeItem('CARBON_CTA_2')
if (!window.localStorage.getItem(key)) { if (!window.localStorage.getItem(key)) {
setState(true) setState(true)
} }

Loading…
Cancel
Save