From 27d712290a908fcb471c59a8e5c8e95bd862c49c Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 23 Jul 2024 15:01:04 +0100 Subject: 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> --- src/view/com/lightbox/Lightbox.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/view/com/lightbox/Lightbox.tsx') diff --git a/src/view/com/lightbox/Lightbox.tsx b/src/view/com/lightbox/Lightbox.tsx index 858116fdf..fb31a0b9f 100644 --- a/src/view/com/lightbox/Lightbox.tsx +++ b/src/view/com/lightbox/Lightbox.tsx @@ -66,7 +66,10 @@ function LightboxFooter({imageIndex}: {imageIndex: number}) { const saveImageToAlbumWithToasts = React.useCallback( async (uri: string) => { if (!permissionResponse || permissionResponse.granted === false) { - Toast.show(_(msg`Permission to access camera roll is required.`)) + Toast.show( + _(msg`Permission to access camera roll is required.`), + 'info', + ) if (permissionResponse?.canAskAgain) { requestPermission() } else { @@ -74,6 +77,7 @@ function LightboxFooter({imageIndex}: {imageIndex: number}) { _( msg`Permission to access camera roll was denied. Please enable it in your system settings.`, ), + 'xmark', ) } return @@ -83,7 +87,7 @@ function LightboxFooter({imageIndex}: {imageIndex: number}) { await saveImageToMediaLibrary({uri}) Toast.show(_(msg`Saved to your camera roll`)) } catch (e: any) { - Toast.show(_(msg`Failed to save image: ${String(e)}`)) + Toast.show(_(msg`Failed to save image: ${String(e)}`), 'xmark') } }, [permissionResponse, requestPermission, _], -- cgit 1.4.1