change toast position to top-right
This commit is contained in:
parent
1c4e29fa7c
commit
f29256a8f5
|
@ -44,7 +44,7 @@ const DeleteEmailTemplateModal = ({
|
||||||
title: capitalizeFirstLetter(res.error.message),
|
title: capitalizeFirstLetter(res.error.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -53,7 +53,7 @@ const DeleteEmailTemplateModal = ({
|
||||||
title: capitalizeFirstLetter(res.data?._delete_email_template.message),
|
title: capitalizeFirstLetter(res.data?._delete_email_template.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
onClose();
|
onClose();
|
||||||
|
|
|
@ -51,7 +51,7 @@ const DeleteUserModal = ({
|
||||||
title: capitalizeFirstLetter(res.error.message),
|
title: capitalizeFirstLetter(res.error.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -60,7 +60,7 @@ const DeleteUserModal = ({
|
||||||
title: capitalizeFirstLetter(res.data?._delete_user.message),
|
title: capitalizeFirstLetter(res.data?._delete_user.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
onClose();
|
onClose();
|
||||||
|
|
|
@ -44,7 +44,7 @@ const DeleteWebhookModal = ({
|
||||||
title: capitalizeFirstLetter(res.error.message),
|
title: capitalizeFirstLetter(res.error.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -53,7 +53,7 @@ const DeleteWebhookModal = ({
|
||||||
title: capitalizeFirstLetter(res.data?._delete_webhook.message),
|
title: capitalizeFirstLetter(res.data?._delete_webhook.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
onClose();
|
onClose();
|
||||||
|
|
|
@ -104,14 +104,14 @@ const EditUserModal = ({
|
||||||
title: 'User data update failed',
|
title: 'User data update failed',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} else if (res.data?._update_user?.id) {
|
} else if (res.data?._update_user?.id) {
|
||||||
toast({
|
toast({
|
||||||
title: 'User data update successful',
|
title: 'User data update successful',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
onClose();
|
onClose();
|
||||||
|
|
|
@ -43,7 +43,7 @@ const JSTConfigurations = ({
|
||||||
title: `JWT config copied successfully`,
|
title: `JWT config copied successfully`,
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error({
|
console.error({
|
||||||
|
@ -54,7 +54,7 @@ const JSTConfigurations = ({
|
||||||
title: `Failed to copy JWT config`,
|
title: `Failed to copy JWT config`,
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -73,7 +73,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => {
|
||||||
title: 'Error occurred generating jwt keys',
|
title: 'Error occurred generating jwt keys',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
closeHandler();
|
closeHandler();
|
||||||
} else {
|
} else {
|
||||||
|
@ -107,7 +107,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => {
|
||||||
title: 'Error occurred setting jwt keys',
|
title: 'Error occurred setting jwt keys',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -116,7 +116,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => {
|
||||||
title: 'JWT keys updated successfully',
|
title: 'JWT keys updated successfully',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
closeHandler();
|
closeHandler();
|
||||||
};
|
};
|
||||||
|
|
|
@ -105,7 +105,7 @@ const InviteMembersModal = ({
|
||||||
title: 'Invites sent successfully!',
|
title: 'Invites sent successfully!',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
updateUserList();
|
updateUserList();
|
||||||
|
@ -117,7 +117,7 @@ const InviteMembersModal = ({
|
||||||
title: error?.message || 'Error occurred, try again!',
|
title: error?.message || 'Error occurred, try again!',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,7 +173,7 @@ const UpdateEmailTemplate = ({
|
||||||
title: capitalizeFirstLetter(res.error.message),
|
title: capitalizeFirstLetter(res.error.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} else if (
|
} else if (
|
||||||
res.data?._add_email_template ||
|
res.data?._add_email_template ||
|
||||||
|
@ -186,7 +186,7 @@ const UpdateEmailTemplate = ({
|
||||||
),
|
),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
setTemplateData({
|
setTemplateData({
|
||||||
...initTemplateData,
|
...initTemplateData,
|
||||||
|
|
|
@ -290,7 +290,7 @@ const UpdateWebhookModal = ({
|
||||||
title: capitalizeFirstLetter(res.error.message),
|
title: capitalizeFirstLetter(res.error.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} else if (res.data?._add_webhook || res.data?._update_webhook) {
|
} else if (res.data?._add_webhook || res.data?._update_webhook) {
|
||||||
toast({
|
toast({
|
||||||
|
@ -299,7 +299,7 @@ const UpdateWebhookModal = ({
|
||||||
),
|
),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
setWebhook({
|
setWebhook({
|
||||||
...initWebhookData,
|
...initWebhookData,
|
||||||
|
|
|
@ -57,7 +57,7 @@ export default function Auth() {
|
||||||
title: capitalizeFirstLetter(error.message),
|
title: capitalizeFirstLetter(error.message),
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,7 +203,7 @@ const Environment = () => {
|
||||||
} variables`,
|
} variables`,
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -180,14 +180,14 @@ export default function Users() {
|
||||||
title: 'User verification failed',
|
title: 'User verification failed',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} else if (res.data?._update_user?.id) {
|
} else if (res.data?._update_user?.id) {
|
||||||
toast({
|
toast({
|
||||||
title: 'User verification successful',
|
title: 'User verification successful',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
updateUserList();
|
updateUserList();
|
||||||
|
@ -211,14 +211,14 @@ export default function Users() {
|
||||||
title: 'User access enable failed',
|
title: 'User access enable failed',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
toast({
|
toast({
|
||||||
title: 'User access enabled successfully',
|
title: 'User access enabled successfully',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
updateUserList();
|
updateUserList();
|
||||||
|
@ -236,14 +236,14 @@ export default function Users() {
|
||||||
title: 'User access revoke failed',
|
title: 'User access revoke failed',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
toast({
|
toast({
|
||||||
title: 'User access revoked successfully',
|
title: 'User access revoked successfully',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
updateUserList();
|
updateUserList();
|
||||||
|
@ -268,7 +268,7 @@ export default function Users() {
|
||||||
} for user`,
|
} for user`,
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
updateUserList();
|
updateUserList();
|
||||||
return;
|
return;
|
||||||
|
@ -277,7 +277,7 @@ export default function Users() {
|
||||||
title: 'Multi factor authentication update failed for user',
|
title: 'Multi factor authentication update failed for user',
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: 'error',
|
status: 'error',
|
||||||
position: 'bottom-right',
|
position: 'top-right',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user