Skip to content

Commit

Permalink
Update HomeScreenAlert src
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy committed Oct 3, 2023
1 parent 2fce5e9 commit 76d6704
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const HomePage: NextPageWithLayout = () => {
const [isHomeScreenApp, setHomeScreenApp] = useState(false);
const [iosHomeScreenPrompt, setIosHomeScreenPrompt] = useState(false);
const iOSDevice = useMemo(() => {
if (typeof window !== "undefined") {
if (typeof window !== 'undefined') {
return isIOS();
}
return false;
Expand Down Expand Up @@ -75,7 +75,7 @@ const HomePage: NextPageWithLayout = () => {
} else {
setTimeout(() => {
setShowNotificationModalState(showNotificationModal());
}, 10000);
}, 3000);
}
}
}
Expand Down Expand Up @@ -132,7 +132,7 @@ const HomePage: NextPageWithLayout = () => {
}
}, [iOSDevice]);

console.log("iOSDevice: ", iOSDevice, "isHomeScreenApp: ", isHomeScreenApp);
console.log('iOSDevice: ', iOSDevice, 'isHomeScreenApp: ', isHomeScreenApp);

if (signedIn || signedInOptimistic) {
return (
Expand All @@ -151,8 +151,7 @@ const HomePage: NextPageWithLayout = () => {
}}
/>
<VmComponent
// src={components.nearOrg.notifications.iosHomeScreenAlert}
src="dima_sheleg.near/widget/NearOrg.Notifications.HomeScreenAlert"
src={components.nearOrg.notifications.iosHomeScreenAlert}
props={{
open: iosHomeScreenPrompt,
onOpenChange: handleHomeScreenClose,
Expand Down

0 comments on commit 76d6704

Please sign in to comment.