setup maintenance container. improve pushman ui
This commit is contained in:
@ -117,12 +117,13 @@ function PwaManagerNotifications() {
|
||||
<button
|
||||
onClick={isPermissionGranted ? undefined : requestNotificationPermission}
|
||||
className={`text-xs py-1 px-2 rounded-full focus:outline-none transition duration-150 ease-in-out
|
||||
${isPermissionGranted ? 'bg-blue-400 text-white'
|
||||
: 'border border-blue-300 text-blue-300 bg-transparent hover:bg-blue-100'
|
||||
${isPermissionGranted ?
|
||||
'border border-blue-300 text-blue-300 bg-transparent hover:bg-blue-100'
|
||||
: 'bg-blue-400 text-white'
|
||||
}`}
|
||||
disabled={isPermissionGranted}
|
||||
>
|
||||
{!isSupported() ? "не поддъжа известия" : (isPermissionGranted ? 'Известията включени' : 'Включи известията')}
|
||||
{!isSupported() ? "не поддъжа известия" : (isPermissionGranted && subscription ? 'Известията включени' : 'Включи известията')}
|
||||
</button>
|
||||
</div >
|
||||
);
|
||||
|
Reference in New Issue
Block a user