File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
components/utils/NotificationPwaModal Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ export const Modals = () => {
2929
3030 const notificationsEnabled = useNotificationPermissionState ( )
3131
32+ console . log ( { perms : window . Notification . permission } )
33+
3234 const explicitlyDeniedOnDesktop = ! isMobile ( ) && window . Notification ?. permission === 'denied'
3335
3436 const shouldShowNotificationModal = useMemo (
Original file line number Diff line number Diff line change 77 gap : 2em ;
88 position : relative ;
99
10+ & __header {
11+ display : flex ;
12+ justify-content : flex-end ;
13+ width : 100% ;
14+ align-items : center ;
15+ }
16+
1017 & __background {
1118 position : absolute ;
1219 z-index : -999 ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { requireNotifyPermission } from '@/utils/notifications'
1010import { pwaModalService } from '@/utils/store'
1111
1212import './NotificationPwaModal.scss'
13+ import CrossIcon from '@/components/general/Icon/CrossIcon'
1314
1415export const NotificationPwaModal : React . FC = ( ) => {
1516 const { notifyClientProxy } = useContext ( W3iContext )
@@ -31,6 +32,15 @@ export const NotificationPwaModal: React.FC = () => {
3132 return (
3233 < Modal onCloseModal = { pwaModalService . closeModal } >
3334 < div className = "NotificationPwaModal" >
35+ < div className = "NotificationPwaModal__header" >
36+ < Button
37+ className = "ContactsModal__close"
38+ customType = "action-icon"
39+ onClick = { pwaModalService . closeModal }
40+ >
41+ < CrossIcon />
42+ </ Button >
43+ </ div >
3444 < div className = "NotificationPwaModal__background" >
3545 < img src = { BackgroundImage } />
3646 </ div >
You can’t perform that action at this time.
0 commit comments