Skip to content

Commit 73f7194

Browse files
style: format code with prettier and fix lint issues
1 parent feb0811 commit 73f7194

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

client/src/lib/toast.js

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
import { toast } from "react-hot-toast";
1+
import { toast } from 'react-hot-toast';
22

33
export const showSuccess = (msg) => {
4-
toast.success(msg, {
5-
style: {
6-
background: "#4caf50",
7-
color: "#fff",
8-
},
9-
});
10-
11-
return;
4+
toast.success(msg, {
5+
style: {
6+
background: '#4caf50',
7+
color: '#fff',
8+
},
9+
});
1210
};
1311

1412
export const showError = (msg) => {
15-
toast.error(msg, {
16-
style: {
17-
background: "#f44336",
18-
color: "#fff",
19-
},
20-
});
21-
22-
return;
13+
toast.error(msg, {
14+
style: {
15+
background: '#f44336',
16+
color: '#fff',
17+
},
18+
});
2319
};

0 commit comments

Comments
 (0)