Skip to content

Commit 184250e

Browse files
committed
Fix module reference
1 parent bf78b35 commit 184250e

File tree

1 file changed

+3
-3
lines changed
  • packages/floating-install-button/src

1 file changed

+3
-3
lines changed

packages/floating-install-button/src/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare var window: any
22

3-
import React, { useState, useEffect } from 'react'
3+
import * as React from 'react'
44
import styled from 'styled-components'
55
import { GetGlobalColor, Text, Container } from '@titicaca/triple-design-system'
66

@@ -67,13 +67,13 @@ export default function FloatingInstallButton({
6767
onClose?: any
6868
}
6969
}) {
70-
const [buttonVisibility, setButtonVisibility] = useState(false)
70+
const [buttonVisibility, setButtonVisibility] = React.useState(false)
7171

7272
const sendTrackEventRequest = (param) => {
7373
trackEvent && param && trackEvent(param)
7474
}
7575

76-
useEffect(() => {
76+
React.useEffect(() => {
7777
const visitedPages = window.sessionStorage.getItem(CLOSE_INSTALL_BUTTON_KEY)
7878
if (!visitedPages) {
7979
setButtonVisibility(true)

0 commit comments

Comments
 (0)