Use secondary btn, updated copies on MobileApp Send Push (#2159)
# What this PR does Changes on MobileApp screen - Switched buttons to `secondary` instead of `destructive` - Update copy (Send Test Push/Important) + notification copy
This commit is contained in:
parent
8c5f6238dc
commit
bebce3badd
1 changed files with 4 additions and 4 deletions
|
|
@ -208,14 +208,14 @@ const MobileAppConnection = observer(({ userPk }: Props) => {
|
|||
onClick={() => onSendTestNotification()}
|
||||
disabled={isAttemptingTestNotification}
|
||||
>
|
||||
Send Test Push notification
|
||||
Send Test Push
|
||||
</Button>
|
||||
<Button
|
||||
variant="destructive"
|
||||
variant="secondary"
|
||||
onClick={() => onSendTestNotification(true)}
|
||||
disabled={isAttemptingTestNotification}
|
||||
>
|
||||
Send Important Test Push notification
|
||||
Send Test Push Important
|
||||
</Button>
|
||||
</HorizontalGroup>
|
||||
</div>
|
||||
|
|
@ -229,7 +229,7 @@ const MobileAppConnection = observer(({ userPk }: Props) => {
|
|||
|
||||
try {
|
||||
await userStore.sendTestPushNotification(userPk, isCritical);
|
||||
openNotification('Notification was sent');
|
||||
openNotification(isCritical ? 'Push Important Notification has been sent' : 'Push Notification has been sent');
|
||||
} catch (ex) {
|
||||
if (ex.response?.status === 429) {
|
||||
openWarningNotification('Too much attempts, try again later');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue