[WEB-4182] Fix work item links error messages (#7122)

* fix: backend error message toast when getting error

* fix: toast in small screens
This commit is contained in:
JayashTripathy 2025-06-03 22:18:26 +05:30 committed by GitHub
parent 48b613ae66
commit e570fe404f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ export const setToast = (props: SetToastProps) => {
)}
>
<X
className="fixed top-2 right-2.5 text-toast-text-secondary hover:text-toast-text-tertiary cursor-pointer"
className="absolute top-2 right-2.5 text-toast-text-secondary hover:text-toast-text-tertiary cursor-pointer"
strokeWidth={1.5}
width={14}
height={14}

View file

@ -32,7 +32,7 @@ export const useLinkOperations = (
});
} catch (error: any) {
setToast({
message: error?.data?.url?.error ?? t("links.toasts.not_created.message"),
message: error?.data?.error ?? t("links.toasts.not_created.message"),
type: TOAST_TYPE.ERROR,
title: t("links.toasts.not_created.title"),
});
@ -50,7 +50,7 @@ export const useLinkOperations = (
});
} catch (error: any) {
setToast({
message: error?.data?.url?.error ?? t("links.toasts.not_updated.message"),
message: error?.data?.error ?? t("links.toasts.not_updated.message"),
type: TOAST_TYPE.ERROR,
title: t("links.toasts.not_updated.title"),
});