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