From 0668e2c90a7a8a890f97629c9e71ce5c6d8922ec Mon Sep 17 00:00:00 2001 From: jdrskr Date: Thu, 30 Nov 2023 12:27:07 +0100 Subject: [PATCH] feat: update snackbar --- .../src/pages/client/pages/components/InteractionsWidget.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/client/pages/components/InteractionsWidget.tsx b/frontend/src/pages/client/pages/components/InteractionsWidget.tsx index f753de4..cdf9f7e 100644 --- a/frontend/src/pages/client/pages/components/InteractionsWidget.tsx +++ b/frontend/src/pages/client/pages/components/InteractionsWidget.tsx @@ -87,11 +87,11 @@ export const InteractionsWidget: React.FC = () => { !value ); - snackbar.enqueueSnackbar("Login success", { + snackbar.enqueueSnackbar(`${!value ? "Buy" : "Sell"} success`, { variant: "success", }); } catch (e) { - snackbar.enqueueSnackbar("Login failed", { + snackbar.enqueueSnackbar(`${!value ? "Buy" : "Sell"} fail`, { variant: "error", }); }