Skip to content

Commit

Permalink
fix: click to pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Jul 28, 2023
1 parent 7dc4d48 commit fe3972a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/storefront/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useContext, useEffect } from 'react'
import { useCallback, useContext, useEffect, useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { HashRouter } from 'react-router-dom'
import { useB3AppOpen } from '@b3/hooks'
Expand Down Expand Up @@ -71,8 +71,10 @@ export default function App() {
currentClickedUrl,
isRegisterAndLogin,
} = useSelector(globalStateSelector)
const [isClickBtn, setIsClickEnterBtn] = useState<boolean>(false)

const handleAccountClick = (href: string, isRegisterAndLogin: boolean) => {
setIsClickEnterBtn(!isClickBtn)
showPageMask(dispatch, true)
storeDispatch(
setGlabolCommonState({
Expand Down Expand Up @@ -265,7 +267,7 @@ export default function App() {
})
)
}
}, [isPageComplete, currentClickedUrl])
}, [isPageComplete, currentClickedUrl, isClickBtn])

useEffect(() => {
const handleHashChange = () => {
Expand Down

0 comments on commit fe3972a

Please sign in to comment.