about summary refs log tree commit diff
path: root/src/components/StarterPack
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-07-23 15:01:04 +0100
committerGitHub <noreply@github.com>2024-07-23 15:01:04 +0100
commit27d712290a908fcb471c59a8e5c8e95bd862c49c (patch)
treee39aa55d097725fd9fcd448198d62a0c02b4966f /src/components/StarterPack
parent59bafb426ff018a3b8a92dee8994c5413fb30076 (diff)
downloadvoidsky-27d712290a908fcb471c59a8e5c8e95bd862c49c.tar.zst
Use appropriate icons for toasts (#4803)
* use appropriate icons for toasts

* use info for session expiry

* tweak size

* message -> safeMessage

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src/components/StarterPack')
-rw-r--r--src/components/StarterPack/QrCodeDialog.tsx5
-rw-r--r--src/components/StarterPack/ShareDialog.tsx3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/components/StarterPack/QrCodeDialog.tsx b/src/components/StarterPack/QrCodeDialog.tsx
index 39eb3076d..a884390bf 100644
--- a/src/components/StarterPack/QrCodeDialog.tsx
+++ b/src/components/StarterPack/QrCodeDialog.tsx
@@ -67,7 +67,10 @@ export function QrCodeDialog({
         try {
           await createAssetAsync(`file://${uri}`)
         } catch (e: unknown) {
-          Toast.show(_(msg`An error occurred while saving the QR code!`))
+          Toast.show(
+            _(msg`An error occurred while saving the QR code!`),
+            'xmark',
+          )
           logger.error('Failed to save QR code', {error: e})
           return
         }
diff --git a/src/components/StarterPack/ShareDialog.tsx b/src/components/StarterPack/ShareDialog.tsx
index 61e238081..9851b0856 100644
--- a/src/components/StarterPack/ShareDialog.tsx
+++ b/src/components/StarterPack/ShareDialog.tsx
@@ -66,6 +66,7 @@ function ShareDialogInner({
     if (!res) {
       Toast.show(
         _(msg`You must grant access to your photo library to save the image.`),
+        'xmark',
       )
       return
     }
@@ -75,7 +76,7 @@ function ShareDialogInner({
       Toast.show(_(msg`Image saved to your camera roll!`))
       control.close()
     } catch (e: unknown) {
-      Toast.show(_(msg`An error occurred while saving the QR code!`))
+      Toast.show(_(msg`An error occurred while saving the QR code!`), 'xmark')
       logger.error('Failed to save QR code', {error: e})
       return
     }