File tree 1 file changed +3
-3
lines changed
packages/floating-install-button/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
declare var window : any
2
2
3
- import React , { useState , useEffect } from 'react'
3
+ import * as React from 'react'
4
4
import styled from 'styled-components'
5
5
import { GetGlobalColor , Text , Container } from '@titicaca/triple-design-system'
6
6
@@ -67,13 +67,13 @@ export default function FloatingInstallButton({
67
67
onClose ?: any
68
68
}
69
69
} ) {
70
- const [ buttonVisibility , setButtonVisibility ] = useState ( false )
70
+ const [ buttonVisibility , setButtonVisibility ] = React . useState ( false )
71
71
72
72
const sendTrackEventRequest = ( param ) => {
73
73
trackEvent && param && trackEvent ( param )
74
74
}
75
75
76
- useEffect ( ( ) => {
76
+ React . useEffect ( ( ) => {
77
77
const visitedPages = window . sessionStorage . getItem ( CLOSE_INSTALL_BUTTON_KEY )
78
78
if ( ! visitedPages ) {
79
79
setButtonVisibility ( true )
You can’t perform that action at this time.
0 commit comments