[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:
parent
48b613ae66
commit
e570fe404f
2 changed files with 3 additions and 3 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue