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:
Rares Mardare 2023-06-12 17:29:25 +03:00 committed by GitHub
parent 8c5f6238dc
commit bebce3badd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');