Skip to content

Commit 1c8298e

Browse files
Merge pull request #39 from sreeram-venkitesh/fix-indentation-and-toastr-message-styles
Fixed Select Box and Toastr error message styles
2 parents 3663971 + a509631 commit 1c8298e

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

components/Toastr.jsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
21
import { toast } from "react-toastify";
32
import { TOASTR_OPTIONS } from "../constants/toastr";
43

54
const ToastrComponent = ({ message }) => {
65
return (
76
<div className="flex flex-row items-start justify-start">
8-
<p className="text-medium text-black dark:text-white">{message}</p>
7+
<p className="text-medium text-white">{message}</p>
98
</div>
10-
)
11-
}
9+
);
10+
};
1211

13-
const showToastr = message => {
14-
toast( <ToastrComponent message={message}/>, TOASTR_OPTIONS)
15-
}
12+
const showToastr = (message) => {
13+
toast(<ToastrComponent message={message} />, TOASTR_OPTIONS);
14+
};
1615

17-
const isError = e => e && e.stack && e.message;
16+
const isError = (e) => e && e.stack && e.message;
1817

19-
const showErrorToastr = error => {
18+
const showErrorToastr = (error) => {
2019
const errorMessage = isError(error) ? error.message : error;
21-
toast.error( <ToastrComponent message={errorMessage}/>, TOASTR_OPTIONS)
22-
}
20+
toast.error(<ToastrComponent message={errorMessage} />, TOASTR_OPTIONS);
21+
};
2322

2423
const Toastr = {
2524
success: showToastr,
26-
error: showErrorToastr
27-
}
25+
error: showErrorToastr,
26+
};
2827

29-
export default Toastr;
28+
export default Toastr;

styles/components/_select.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.react-select__single-value {
2-
color: white;
2+
color: white !important;
33
}
44

55
.react-select__container,

0 commit comments

Comments
 (0)