Skip to content

Commit da29f9d

Browse files
authored
Merge pull request #308 from Lentech-AS/main
change toast position to top-right
2 parents 1c4e29f + f29256a commit da29f9d

File tree

12 files changed

+29
-29
lines changed

12 files changed

+29
-29
lines changed

dashboard/src/components/DeleteEmailTemplateModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DeleteEmailTemplateModal = ({
4444
title: capitalizeFirstLetter(res.error.message),
4545
isClosable: true,
4646
status: 'error',
47-
position: 'bottom-right',
47+
position: 'top-right',
4848
});
4949

5050
return;
@@ -53,7 +53,7 @@ const DeleteEmailTemplateModal = ({
5353
title: capitalizeFirstLetter(res.data?._delete_email_template.message),
5454
isClosable: true,
5555
status: 'success',
56-
position: 'bottom-right',
56+
position: 'top-right',
5757
});
5858
}
5959
onClose();

dashboard/src/components/DeleteUserModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const DeleteUserModal = ({
5151
title: capitalizeFirstLetter(res.error.message),
5252
isClosable: true,
5353
status: 'error',
54-
position: 'bottom-right',
54+
position: 'top-right',
5555
});
5656

5757
return;
@@ -60,7 +60,7 @@ const DeleteUserModal = ({
6060
title: capitalizeFirstLetter(res.data?._delete_user.message),
6161
isClosable: true,
6262
status: 'success',
63-
position: 'bottom-right',
63+
position: 'top-right',
6464
});
6565
}
6666
onClose();

dashboard/src/components/DeleteWebhookModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DeleteWebhookModal = ({
4444
title: capitalizeFirstLetter(res.error.message),
4545
isClosable: true,
4646
status: 'error',
47-
position: 'bottom-right',
47+
position: 'top-right',
4848
});
4949

5050
return;
@@ -53,7 +53,7 @@ const DeleteWebhookModal = ({
5353
title: capitalizeFirstLetter(res.data?._delete_webhook.message),
5454
isClosable: true,
5555
status: 'success',
56-
position: 'bottom-right',
56+
position: 'top-right',
5757
});
5858
}
5959
onClose();

dashboard/src/components/EditUserModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ const EditUserModal = ({
104104
title: 'User data update failed',
105105
isClosable: true,
106106
status: 'error',
107-
position: 'bottom-right',
107+
position: 'top-right',
108108
});
109109
} else if (res.data?._update_user?.id) {
110110
toast({
111111
title: 'User data update successful',
112112
isClosable: true,
113113
status: 'success',
114-
position: 'bottom-right',
114+
position: 'top-right',
115115
});
116116
}
117117
onClose();

dashboard/src/components/EnvComponents/JWTConfiguration.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const JSTConfigurations = ({
4343
title: `JWT config copied successfully`,
4444
isClosable: true,
4545
status: 'success',
46-
position: 'bottom-right',
46+
position: 'top-right',
4747
});
4848
} catch (err) {
4949
console.error({
@@ -54,7 +54,7 @@ const JSTConfigurations = ({
5454
title: `Failed to copy JWT config`,
5555
isClosable: true,
5656
status: 'error',
57-
position: 'bottom-right',
57+
position: 'top-right',
5858
});
5959
}
6060
};

dashboard/src/components/GenerateKeysModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => {
7373
title: 'Error occurred generating jwt keys',
7474
isClosable: true,
7575
status: 'error',
76-
position: 'bottom-right',
76+
position: 'top-right',
7777
});
7878
closeHandler();
7979
} else {
@@ -107,7 +107,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => {
107107
title: 'Error occurred setting jwt keys',
108108
isClosable: true,
109109
status: 'error',
110-
position: 'bottom-right',
110+
position: 'top-right',
111111
});
112112

113113
return;
@@ -116,7 +116,7 @@ const GenerateKeysModal = ({ jwtType, getData }: propTypes) => {
116116
title: 'JWT keys updated successfully',
117117
isClosable: true,
118118
status: 'success',
119-
position: 'bottom-right',
119+
position: 'top-right',
120120
});
121121
closeHandler();
122122
};

dashboard/src/components/InviteMembersModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const InviteMembersModal = ({
105105
title: 'Invites sent successfully!',
106106
isClosable: true,
107107
status: 'success',
108-
position: 'bottom-right',
108+
position: 'top-right',
109109
});
110110
setLoading(false);
111111
updateUserList();
@@ -117,7 +117,7 @@ const InviteMembersModal = ({
117117
title: error?.message || 'Error occurred, try again!',
118118
isClosable: true,
119119
status: 'error',
120-
position: 'bottom-right',
120+
position: 'top-right',
121121
});
122122
setLoading(false);
123123
}

dashboard/src/components/UpdateEmailTemplateModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const UpdateEmailTemplate = ({
173173
title: capitalizeFirstLetter(res.error.message),
174174
isClosable: true,
175175
status: 'error',
176-
position: 'bottom-right',
176+
position: 'top-right',
177177
});
178178
} else if (
179179
res.data?._add_email_template ||
@@ -186,7 +186,7 @@ const UpdateEmailTemplate = ({
186186
),
187187
isClosable: true,
188188
status: 'success',
189-
position: 'bottom-right',
189+
position: 'top-right',
190190
});
191191
setTemplateData({
192192
...initTemplateData,

dashboard/src/components/UpdateWebhookModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ const UpdateWebhookModal = ({
290290
title: capitalizeFirstLetter(res.error.message),
291291
isClosable: true,
292292
status: 'error',
293-
position: 'bottom-right',
293+
position: 'top-right',
294294
});
295295
} else if (res.data?._add_webhook || res.data?._update_webhook) {
296296
toast({
@@ -299,7 +299,7 @@ const UpdateWebhookModal = ({
299299
),
300300
isClosable: true,
301301
status: 'success',
302-
position: 'bottom-right',
302+
position: 'top-right',
303303
});
304304
setWebhook({
305305
...initWebhookData,

dashboard/src/pages/Auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function Auth() {
5757
title: capitalizeFirstLetter(error.message),
5858
isClosable: true,
5959
status: 'error',
60-
position: 'bottom-right',
60+
position: 'top-right',
6161
});
6262
});
6363
}

0 commit comments

Comments
 (0)