From 5ad107a134b86d61893cbba2c4cac9467516ea3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Wed, 11 Sep 2024 10:09:50 +0200 Subject: [PATCH] feat(github): Display toast as soon as the github request is sent --- client/src/pages/actions/actionsOpenalexFeedback.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/pages/actions/actionsOpenalexFeedback.jsx b/client/src/pages/actions/actionsOpenalexFeedback.jsx index 9f324976..73f0891f 100644 --- a/client/src/pages/actions/actionsOpenalexFeedback.jsx +++ b/client/src/pages/actions/actionsOpenalexFeedback.jsx @@ -19,6 +19,13 @@ export default function ActionsOpenalexFeedback({ allOpenalexCorrections }) { }; const feedback = async () => { + toast({ + autoDismissAfter: 5000, + description: 'Your correction(s) are currently submitted to the Github repository', + id: 'saveOpenAlex', + title: 'OpenAlex corrections submitted', + toastType: 'info', + }); try { await sendGitHubIssue({ data: allOpenalexCorrections, email: userEmail }); toast({