We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb0811 commit 73f7194Copy full SHA for 73f7194
client/src/lib/toast.js
@@ -1,23 +1,19 @@
1
-import { toast } from "react-hot-toast";
+import { toast } from 'react-hot-toast';
2
3
export const showSuccess = (msg) => {
4
- toast.success(msg, {
5
- style: {
6
- background: "#4caf50",
7
- color: "#fff",
8
- },
9
- });
10
-
11
- return;
+ toast.success(msg, {
+ style: {
+ background: '#4caf50',
+ color: '#fff',
+ },
+ });
12
};
13
14
export const showError = (msg) => {
15
- toast.error(msg, {
16
17
- background: "#f44336",
18
19
20
21
22
+ toast.error(msg, {
+ background: '#f44336',
23
0 commit comments