diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/AskForClaimDecision/AskForClaimDecision.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/AskForClaimDecision/AskForClaimDecision.tsx index 04ad2ed015..d43dbd5a16 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/AskForClaimDecision/AskForClaimDecision.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/AskForClaimDecision/AskForClaimDecision.tsx @@ -104,7 +104,8 @@ function AskForClaimDecision({ navigation, route }: AskForClaimDecisionProps) { setSubmittedDecision(true) snackbar.show('Request sent') }, - onError: () => snackbar.show('Request could not be sent', { isError: true, onActionPressed: () => onSubmit }), + onError: () => + snackbar.show('Request could not be sent', { isError: true, offset: 0, onActionPressed: () => onSubmit }), } submitClaimDecision(claimID, mutateOptions) } diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/SelectFile/UploadFile/UploadFile.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/SelectFile/UploadFile/UploadFile.tsx index 09e3293a7e..5050f5b573 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/SelectFile/UploadFile/UploadFile.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/SelectFile/UploadFile/UploadFile.tsx @@ -146,7 +146,11 @@ function UploadFile({ navigation, route }: UploadFileProps) { snackbar.show(t('fileUpload.submitted')) }, onError: () => - snackbar.show(t('fileUpload.submitted.error'), { isError: true, onActionPressed: onUploadConfirmed }), + snackbar.show(t('fileUpload.submitted.error'), { + isError: true, + offset: 0, + onActionPressed: onUploadConfirmed, + }), } const params: UploadFileToClaimParamaters = { claimID, documentType: documentType, request, files: filesList } uploadFileToClaim(params, mutateOptions) diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/TakePhotos/UploadOrAddPhotos/UploadOrAddPhotos.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/TakePhotos/UploadOrAddPhotos/UploadOrAddPhotos.tsx index 799175697e..b93d875aac 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/TakePhotos/UploadOrAddPhotos/UploadOrAddPhotos.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimDetailsScreen/ClaimStatus/ClaimFileUpload/TakePhotos/UploadOrAddPhotos/UploadOrAddPhotos.tsx @@ -149,7 +149,11 @@ function UploadOrAddPhotos({ navigation, route }: UploadOrAddPhotosProps) { snackbar.show(t('fileUpload.submitted')) }, onError: () => - snackbar.show(t('fileUpload.submitted.error'), { isError: true, onActionPressed: onUploadConfirmed }), + snackbar.show(t('fileUpload.submitted.error'), { + isError: true, + offset: 0, + onActionPressed: onUploadConfirmed, + }), } const params: UploadFileToClaimParamaters = { claimID, diff --git a/VAMobile/src/screens/HealthScreen/SecureMessaging/CancelConfirmations/ComposeCancelConfirmation.tsx b/VAMobile/src/screens/HealthScreen/SecureMessaging/CancelConfirmations/ComposeCancelConfirmation.tsx index feaa5d3b91..341f0a6851 100644 --- a/VAMobile/src/screens/HealthScreen/SecureMessaging/CancelConfirmations/ComposeCancelConfirmation.tsx +++ b/VAMobile/src/screens/HealthScreen/SecureMessaging/CancelConfirmations/ComposeCancelConfirmation.tsx @@ -82,6 +82,7 @@ export function useComposeCancelConfirmation(): [ onError: () => { snackbar.show(t('secureMessaging.draft.saved.error'), { isError: true, + offset: 0, onActionPressed: () => saveDraft(params, mutateOptions), }) }, diff --git a/VAMobile/src/screens/HealthScreen/SecureMessaging/EditDraft/EditDraft.tsx b/VAMobile/src/screens/HealthScreen/SecureMessaging/EditDraft/EditDraft.tsx index 9beab5a952..ba72567aec 100644 --- a/VAMobile/src/screens/HealthScreen/SecureMessaging/EditDraft/EditDraft.tsx +++ b/VAMobile/src/screens/HealthScreen/SecureMessaging/EditDraft/EditDraft.tsx @@ -189,6 +189,7 @@ function EditDraft({ navigation, route }: EditDraftProps) { const params: SendMessageParameters = { messageData: messageData, uploads: attachmentsList } snackbar.show(t('secureMessaging.startNewMessage.sent.error'), { isError: true, + offset: 0, onActionPressed: () => sendMessage(params, mutateOptions), }) } @@ -271,6 +272,7 @@ function EditDraft({ navigation, route }: EditDraftProps) { onError: () => { snackbar.show(t('secureMessaging.deleteDraft.snackBarErrorMessage'), { isError: true, + offset: 0, onActionPressed: () => deleteDraft(params, mutateOptions), }) }, @@ -478,6 +480,7 @@ function EditDraft({ navigation, route }: EditDraftProps) { onError: () => { snackbar.show(t('secureMessaging.draft.saved.error'), { isError: true, + offset: 0, onActionPressed: () => saveDraft(params, mutateOptions), }) }, diff --git a/VAMobile/src/screens/HealthScreen/SecureMessaging/ReplyMessage/ReplyMessage.tsx b/VAMobile/src/screens/HealthScreen/SecureMessaging/ReplyMessage/ReplyMessage.tsx index 8e6ef12da0..23c3697bb7 100644 --- a/VAMobile/src/screens/HealthScreen/SecureMessaging/ReplyMessage/ReplyMessage.tsx +++ b/VAMobile/src/screens/HealthScreen/SecureMessaging/ReplyMessage/ReplyMessage.tsx @@ -219,6 +219,7 @@ function ReplyMessage({ navigation, route }: ReplyMessageProps) { onError: () => { snackbar.show(t('secureMessaging.draft.saved.error'), { isError: true, + offset: 0, onActionPressed: () => saveDraft( { @@ -253,6 +254,7 @@ function ReplyMessage({ navigation, route }: ReplyMessageProps) { } else { snackbar.show(t('secureMessaging.startNewMessage.sent.error'), { isError: true, + offset: 0, onActionPressed: () => sendMessage( { diff --git a/VAMobile/src/screens/HealthScreen/SecureMessaging/StartNewMessage/StartNewMessage.tsx b/VAMobile/src/screens/HealthScreen/SecureMessaging/StartNewMessage/StartNewMessage.tsx index 609be4adaf..3ffbef4185 100644 --- a/VAMobile/src/screens/HealthScreen/SecureMessaging/StartNewMessage/StartNewMessage.tsx +++ b/VAMobile/src/screens/HealthScreen/SecureMessaging/StartNewMessage/StartNewMessage.tsx @@ -306,6 +306,7 @@ function StartNewMessage({ navigation, route }: StartNewMessageProps) { onError: () => { snackbar.show(t('secureMessaging.draft.saved.error'), { isError: true, + offset: 0, onActionPressed: () => { // passing messageDataRef to ensure we have the latest messageData saveDraft({ messageData: messageDataRef.current }, mutateOptions) @@ -332,6 +333,7 @@ function StartNewMessage({ navigation, route }: StartNewMessageProps) { } else { snackbar.show(t('secureMessaging.startNewMessage.sent.error'), { isError: true, + offset: 0, onActionPressed: () => { // passing messageDataRef to ensure we have the latest messageData sendMessage({ messageData: messageDataRef.current, uploads: attachmentsList }, mutateOptions) diff --git a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/AddressValidation/AddressValidation.tsx b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/AddressValidation/AddressValidation.tsx index e760c2b09f..e142410437 100644 --- a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/AddressValidation/AddressValidation.tsx +++ b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/AddressValidation/AddressValidation.tsx @@ -112,7 +112,11 @@ function AddressValidation({ const mutateOptions = { onSuccess: () => snackbar.show(GenerateAddressMessage(t, addressType, false)), onError: () => - snackbar.show(GenerateAddressMessage(t, addressType, true), { isError: true, onActionPressed: () => save }), + snackbar.show(GenerateAddressMessage(t, addressType, true), { + isError: true, + offset: 0, + onActionPressed: () => save, + }), } saveAddress({ addressData, revalidate }, mutateOptions) } diff --git a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditAddressScreen/EditAddressScreen.tsx b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditAddressScreen/EditAddressScreen.tsx index 929084faa1..ebeeac96be 100644 --- a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditAddressScreen/EditAddressScreen.tsx +++ b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditAddressScreen/EditAddressScreen.tsx @@ -215,6 +215,7 @@ function EditAddressScreen({ navigation, route }: IEditAddressScreen) { onError: () => snackbar.show(t('contactInformation.residentialAddress.removed.error'), { isError: true, + offset: 0, onActionPressed: () => deleteAddress, }), } @@ -274,7 +275,11 @@ function EditAddressScreen({ navigation, route }: IEditAddressScreen) { } }, onError: () => - snackbar.show(GenerateAddressMessage(t, addressType, true), { isError: true, onActionPressed: () => save }), + snackbar.show(GenerateAddressMessage(t, addressType, true), { + isError: true, + offset: 0, + onActionPressed: () => save, + }), }, ) } diff --git a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditEmailScreen/EditEmailScreen.tsx b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditEmailScreen/EditEmailScreen.tsx index 2d5b1a666a..6e56c87c7a 100644 --- a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditEmailScreen/EditEmailScreen.tsx +++ b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditEmailScreen/EditEmailScreen.tsx @@ -99,10 +99,11 @@ function EditEmailScreen({ navigation }: EditEmailScreenProps) { onError: (error: unknown) => { if (isErrorObject(error)) { if (error.status === 400) { - snackbar.show(t('contactInformation.emailAddress.not.saved'), { isError: true }) + snackbar.show(t('contactInformation.emailAddress.not.saved'), { isError: true, offset: 0 }) } else { snackbar.show(t('contactInformation.emailAddress.not.saved'), { isError: true, + offset: 0, onActionPressed: () => saveEmail(emailData, mutateOptions), }) } @@ -130,6 +131,7 @@ function EditEmailScreen({ navigation }: EditEmailScreenProps) { onError: () => snackbar.show(t('contactInformation.emailAddress.not.removed'), { isError: true, + offset: 0, onActionPressed: () => deleteEmail(emailData, mutateOptions), }), } diff --git a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditPhoneNumberScreen/EditPhoneNumberScreen.tsx b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditPhoneNumberScreen/EditPhoneNumberScreen.tsx index 8e3db9afda..0cec47b4f2 100644 --- a/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditPhoneNumberScreen/EditPhoneNumberScreen.tsx +++ b/VAMobile/src/screens/HomeScreen/ProfileScreen/ContactInformationScreen/EditPhoneNumberScreen/EditPhoneNumberScreen.tsx @@ -130,6 +130,7 @@ function EditPhoneNumberScreen({ navigation, route }: IEditPhoneNumberScreen) { isErrorObject(error) && snackbar.show(t('contactInformation.phoneNumber.not.saved', { type: displayTitle }), { isError: true, + offset: 0, onActionPressed: save, }), } @@ -147,6 +148,7 @@ function EditPhoneNumberScreen({ navigation, route }: IEditPhoneNumberScreen) { isErrorObject(error) && snackbar.show(t('contactInformation.phoneNumber.not.removed', { type: displayTitle }), { isError: true, + offset: 0, onActionPressed: () => deletePhoneNumber(phoneData, mutateOptions), }), } diff --git a/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/GenderIdentityScreen/GenderIdentityScreen.tsx b/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/GenderIdentityScreen/GenderIdentityScreen.tsx index 1dc9dfec56..f6ae20ae3b 100644 --- a/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/GenderIdentityScreen/GenderIdentityScreen.tsx +++ b/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/GenderIdentityScreen/GenderIdentityScreen.tsx @@ -101,6 +101,7 @@ function GenderIdentityScreen({ navigation }: GenderIdentityScreenProps) { onError: () => snackbar.show(t('personalInformation.genderIdentity.not.saved'), { isError: true, + offset: 0, onActionPressed: updateGenderIdentity, }), } diff --git a/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/PreferredNameScreen/PreferredNameScreen.tsx b/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/PreferredNameScreen/PreferredNameScreen.tsx index 05741771a3..160ffa8628 100644 --- a/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/PreferredNameScreen/PreferredNameScreen.tsx +++ b/VAMobile/src/screens/HomeScreen/ProfileScreen/PersonalInformationScreen/PreferredNameScreen/PreferredNameScreen.tsx @@ -69,6 +69,7 @@ function PreferredNameScreen({ navigation }: PreferredNameScreenProps) { onError: () => snackbar.show(t('personalInformation.preferredName.notSaved'), { isError: true, + offset: 0, onActionPressed: updatePreferredName, }), } diff --git a/VAMobile/src/screens/PaymentsScreen/DirectDepositScreen/EditDirectDepositScreen/EditDirectDepositScreen.tsx b/VAMobile/src/screens/PaymentsScreen/DirectDepositScreen/EditDirectDepositScreen/EditDirectDepositScreen.tsx index acaf98dc26..fceec8e48a 100644 --- a/VAMobile/src/screens/PaymentsScreen/DirectDepositScreen/EditDirectDepositScreen/EditDirectDepositScreen.tsx +++ b/VAMobile/src/screens/PaymentsScreen/DirectDepositScreen/EditDirectDepositScreen/EditDirectDepositScreen.tsx @@ -122,6 +122,7 @@ function EditDirectDepositScreen({ navigation, route }: EditDirectDepositProps) if (!routingNumberError) { snackbar.show(t('directDeposit.saved.error'), { isError: true, + offset: 0, onActionPressed: () => updateBankInfo(updateBankData, mutateOptions), }) }