@@ -4,7 +4,6 @@ import { PWA_DESKTOP_BANNER_VIEWED } from '@/lib/constants/events';
44import { useTypedSelector } from '@/lib/hooks/store' ;
55import usePWA from '@/lib/hooks/usePwa' ;
66import logEvent , { getEventUserData } from '@/lib/utils/logEvent' ;
7- import { rowStyle } from '@/styles/common' ;
87import AddBoxOutlinedIcon from '@mui/icons-material/AddBoxOutlined' ;
98import IosShareIcon from '@mui/icons-material/IosShare' ;
109import { Button , Paper , Stack , Typography , useMediaQuery , useTheme } from '@mui/material' ;
@@ -36,29 +35,23 @@ export const DesktopPwaBanner = () => {
3635 if ( isSmallScreen || bannerState === 'Hidden' ) return null ;
3736
3837 const bannerStyle = {
39- ...rowStyle ,
4038 position : 'fixed' ,
4139 zIndex : 1000 ,
42- px : 2 ,
43- py : 1.5 ,
44- maxWidth : { md : 720 , lg : 800 } ,
45- minWidth : { md : 640 , lg : 800 } ,
46- top : { md : 150 , lg : 160 } ,
47- alignItems : 'center' ,
48- gap : 2 ,
49- justifyContent : bannerState === 'Generic' ? 'space-between' : 'flex-start' ,
40+ p : 2.5 ,
41+ width : 250 ,
42+ right : { md : 16 , lg : 80 } ,
43+ bottom : { md : 16 , lg : 40 } ,
5044 backgroundColor : 'common.white' ,
51- width : 'auto' ,
5245 } as const ;
5346
5447 return (
5548 < Paper elevation = { 1 } sx = { bannerStyle } >
56- < Typography variant = "body2" sx = { { fontWeight : 500 , whiteSpace : 'nowrap' } } >
49+ < Typography variant = "body2" fontWeight = { 500 } >
5750 { t ( bannerState === 'Generic' ? 'mobileDescription' : 'iosDescription' ) }
5851 </ Typography >
5952
6053 { bannerState === 'Generic' ? (
61- < Stack direction = "row" spacing = { 1 } >
54+ < Stack direction = "row" spacing = { 1 } mt = { 1.5 } ml = "auto" >
6255 < Button
6356 onClick = { declineInstallation }
6457 variant = "outlined"
0 commit comments