Skip to content

Commit

Permalink
Fix more withLayout ts erros
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraya committed Feb 5, 2025
1 parent 3769306 commit 4aaa256
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const withLayout = <P extends object>(WrappedComponent: React.ComponentType<P>)
const location = useLocation()
const authModal = useAuthModal()
const {site, locale, buildUrl} = useMultiSite()
const [isOnline, setIsOnline] = useState(true)
const [isOnline, setIsOnline] = useState<boolean>(true)
const styles = useStyleConfig('App')
const {colors} = useTheme()
const {isOpen, onOpen, onClose} = useDisclosure()
Expand Down Expand Up @@ -159,7 +159,7 @@ const withLayout = <P extends object>(WrappedComponent: React.ComponentType<P>)

useEffect(() => {
// Listen for online status changes.
watchOnlineStatus((isOnline) => {
watchOnlineStatus((isOnline: boolean) => {
setIsOnline(isOnline)
})
}, [])
Expand Down Expand Up @@ -323,7 +323,7 @@ const withLayout = <P extends object>(WrappedComponent: React.ComponentType<P>)
appExtensionPackageName: '@salesforce/extension-chakra-storefront'
})}
id="dwanalytics"
async="async"
async={true}
onLoad={trackPage}
></script>
)}
Expand All @@ -334,7 +334,7 @@ const withLayout = <P extends object>(WrappedComponent: React.ComponentType<P>)
})}
type="text/javascript"
id="dwac"
async="async"
async={true}
></script>
)}
</Box>
Expand Down

0 comments on commit 4aaa256

Please sign in to comment.