File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1-
21import { toast } from "react-toastify" ;
32import { TOASTR_OPTIONS } from "../constants/toastr" ;
43
54const 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
2423const Toastr = {
2524 success : showToastr ,
26- error : showErrorToastr
27- }
25+ error : showErrorToastr ,
26+ } ;
2827
29- export default Toastr ;
28+ export default Toastr ;
Original file line number Diff line number Diff line change 11.react-select__single-value {
2- color : white ;
2+ color : white !important ;
33}
44
55.react-select__container ,
You can’t perform that action at this time.
0 commit comments