diff --git a/dashboard/src/components/DeleteEmailTemplateModal.tsx b/dashboard/src/components/DeleteEmailTemplateModal.tsx index 01d429f..52ed550 100644 --- a/dashboard/src/components/DeleteEmailTemplateModal.tsx +++ b/dashboard/src/components/DeleteEmailTemplateModal.tsx @@ -44,7 +44,7 @@ const DeleteEmailTemplateModal = ({ title: capitalizeFirstLetter(res.error.message), isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); return; @@ -53,7 +53,7 @@ const DeleteEmailTemplateModal = ({ title: capitalizeFirstLetter(res.data?._delete_email_template.message), isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } onClose(); diff --git a/dashboard/src/components/DeleteUserModal.tsx b/dashboard/src/components/DeleteUserModal.tsx index c9e5ac8..268a45b 100644 --- a/dashboard/src/components/DeleteUserModal.tsx +++ b/dashboard/src/components/DeleteUserModal.tsx @@ -51,7 +51,7 @@ const DeleteUserModal = ({ title: capitalizeFirstLetter(res.error.message), isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); return; @@ -60,7 +60,7 @@ const DeleteUserModal = ({ title: capitalizeFirstLetter(res.data?._delete_user.message), isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } onClose(); diff --git a/dashboard/src/components/DeleteWebhookModal.tsx b/dashboard/src/components/DeleteWebhookModal.tsx index 49e1443..87aa304 100644 --- a/dashboard/src/components/DeleteWebhookModal.tsx +++ b/dashboard/src/components/DeleteWebhookModal.tsx @@ -44,7 +44,7 @@ const DeleteWebhookModal = ({ title: capitalizeFirstLetter(res.error.message), isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); return; @@ -53,7 +53,7 @@ const DeleteWebhookModal = ({ title: capitalizeFirstLetter(res.data?._delete_webhook.message), isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } onClose(); diff --git a/dashboard/src/components/EditUserModal.tsx b/dashboard/src/components/EditUserModal.tsx index fc4db15..8184786 100644 --- a/dashboard/src/components/EditUserModal.tsx +++ b/dashboard/src/components/EditUserModal.tsx @@ -104,14 +104,14 @@ const EditUserModal = ({ title: 'User data update failed', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } else if (res.data?._update_user?.id) { toast({ title: 'User data update successful', isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } onClose(); diff --git a/dashboard/src/components/EnvComponents/JWTConfiguration.tsx b/dashboard/src/components/EnvComponents/JWTConfiguration.tsx index 7be4958..86f4b39 100644 --- a/dashboard/src/components/EnvComponents/JWTConfiguration.tsx +++ b/dashboard/src/components/EnvComponents/JWTConfiguration.tsx @@ -43,7 +43,7 @@ const JSTConfigurations = ({ title: `JWT config copied successfully`, isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } catch (err) { console.error({ @@ -54,7 +54,7 @@ const JSTConfigurations = ({ title: `Failed to copy JWT config`, isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } }; diff --git a/dashboard/src/components/GenerateKeysModal.tsx b/dashboard/src/components/GenerateKeysModal.tsx index 63fc15f..b19ef33 100644 --- a/dashboard/src/components/GenerateKeysModal.tsx +++ b/dashboard/src/components/GenerateKeysModal.tsx @@ -73,7 +73,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => { title: 'Error occurred generating jwt keys', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); closeHandler(); } else { @@ -107,7 +107,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => { title: 'Error occurred setting jwt keys', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); return; @@ -116,7 +116,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => { title: 'JWT keys updated successfully', isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); closeHandler(); }; diff --git a/dashboard/src/components/InviteMembersModal.tsx b/dashboard/src/components/InviteMembersModal.tsx index 679c0d4..fe6f6d9 100644 --- a/dashboard/src/components/InviteMembersModal.tsx +++ b/dashboard/src/components/InviteMembersModal.tsx @@ -105,7 +105,7 @@ const InviteMembersModal = ({ title: 'Invites sent successfully!', isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); setLoading(false); updateUserList(); @@ -117,7 +117,7 @@ const InviteMembersModal = ({ title: error?.message || 'Error occurred, try again!', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); setLoading(false); } diff --git a/dashboard/src/components/UpdateEmailTemplateModal.tsx b/dashboard/src/components/UpdateEmailTemplateModal.tsx index f5aba9a..334ba3f 100644 --- a/dashboard/src/components/UpdateEmailTemplateModal.tsx +++ b/dashboard/src/components/UpdateEmailTemplateModal.tsx @@ -173,7 +173,7 @@ const UpdateEmailTemplate = ({ title: capitalizeFirstLetter(res.error.message), isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } else if ( res.data?._add_email_template || @@ -186,7 +186,7 @@ const UpdateEmailTemplate = ({ ), isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); setTemplateData({ ...initTemplateData, diff --git a/dashboard/src/components/UpdateWebhookModal.tsx b/dashboard/src/components/UpdateWebhookModal.tsx index 4e426b2..55af022 100644 --- a/dashboard/src/components/UpdateWebhookModal.tsx +++ b/dashboard/src/components/UpdateWebhookModal.tsx @@ -290,7 +290,7 @@ const UpdateWebhookModal = ({ title: capitalizeFirstLetter(res.error.message), isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } else if (res.data?._add_webhook || res.data?._update_webhook) { toast({ @@ -299,7 +299,7 @@ const UpdateWebhookModal = ({ ), isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); setWebhook({ ...initWebhookData, diff --git a/dashboard/src/pages/Auth.tsx b/dashboard/src/pages/Auth.tsx index 83bf55c..f8ace42 100644 --- a/dashboard/src/pages/Auth.tsx +++ b/dashboard/src/pages/Auth.tsx @@ -57,7 +57,7 @@ export default function Auth() { title: capitalizeFirstLetter(error.message), isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); }); } diff --git a/dashboard/src/pages/Environment.tsx b/dashboard/src/pages/Environment.tsx index 8fb79de..dd52248 100644 --- a/dashboard/src/pages/Environment.tsx +++ b/dashboard/src/pages/Environment.tsx @@ -203,7 +203,7 @@ const Environment = () => { } variables`, isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); }; diff --git a/dashboard/src/pages/Users.tsx b/dashboard/src/pages/Users.tsx index 6054900..3a0cc0a 100644 --- a/dashboard/src/pages/Users.tsx +++ b/dashboard/src/pages/Users.tsx @@ -180,14 +180,14 @@ export default function Users() { title: 'User verification failed', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } else if (res.data?._update_user?.id) { toast({ title: 'User verification successful', isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } updateUserList(); @@ -211,14 +211,14 @@ export default function Users() { title: 'User access enable failed', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } else { toast({ title: 'User access enabled successfully', isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } updateUserList(); @@ -236,14 +236,14 @@ export default function Users() { title: 'User access revoke failed', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); } else { toast({ title: 'User access revoked successfully', isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); } updateUserList(); @@ -268,7 +268,7 @@ export default function Users() { } for user`, isClosable: true, status: 'success', - position: 'bottom-right', + position: 'top-right', }); updateUserList(); return; @@ -277,7 +277,7 @@ export default function Users() { title: 'Multi factor authentication update failed for user', isClosable: true, status: 'error', - position: 'bottom-right', + position: 'top-right', }); };