File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 2
2
* Copyright 2022 MFB Technologies, Inc.
3
3
*/
4
4
5
- .success {
6
- color : green
5
+ .renderer-result {
6
+ display : inline-block;
7
+ padding : 2px 5px ;
8
+ }
9
+ .info {
10
+ color : white;
11
+ background-color : blue;
7
12
}
8
- .info {
9
- color : blue;
13
+ .loading {
14
+ background-color : yellow;
15
+ }
16
+ .success {
17
+ color : white;
18
+ background-color : green
10
19
}
11
20
.error {
12
- color : red;
21
+ background- color: red;
13
22
}
Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ export function AsyncRendererExample() {
37
37
< div >
38
38
{ renderer ( ( args ) => {
39
39
return (
40
- < p className = 'success' > { args . data } </ p >
40
+ < p className = 'renderer-result success' > { args . data } </ p >
41
41
)
42
42
} ,
43
43
{
44
- onInit : ( ) => ( < p className = 'info' > Waiting for long running process to start...</ p > ) ,
45
- onLoading : ( ) => ( < p className = 'info ' > custom spinner...</ p > ) ,
46
- onCompletedWithError : ( props ) => ( < p className = 'error' > { props . errorMessage ?? "error" } </ p > )
44
+ onInit : ( ) => ( < p className = 'renderer-result info' > Waiting for long running process to start...</ p > ) ,
45
+ onLoading : ( ) => ( < p className = 'renderer-result loading ' > custom spinner...</ p > ) ,
46
+ onCompletedWithError : ( props ) => ( < p className = 'renderer-result error' > { props . errorMessage ?? "error" } </ p > )
47
47
} ) }
48
48
</ div >
49
49
</ div >
You can’t perform that action at this time.
0 commit comments