File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Loader from '../components/Loader';
6
6
describe ( 'unit testing for Loader.tsx' , ( ) => {
7
7
test ( 'renders a loading icon' , ( ) => {
8
8
const { container } = render ( < Loader loading = { true } result = { false } /> ) ;
9
- expect ( container . firstChild ) . toHaveClass ( 'css-xp4o0b ' ) ;
9
+ expect ( container . firstChild ) . toHaveClass ( 'css-1tm071a ' ) ;
10
10
} ) ;
11
11
12
12
test ( 'renders a fail icon' , ( ) => {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const handleResult = (result: boolean): JSX.Element =>
17
17
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
18
18
const Loader = ( { loading, result } ) : JSX . Element =>
19
19
loading ? (
20
- < ClipLoader color = '#123abc' size = { 30 } loading = { loading } style = { { display : "inline" , margin : "0 auto" } } />
20
+ < ClipLoader color = '#123abc' size = { 30 } loading = { loading } />
21
21
) : (
22
22
handleResult ( result )
23
23
) ;
Original file line number Diff line number Diff line change 40
40
justify-content : center ;
41
41
align-items : center ;
42
42
}
43
+ .loaderChecks span {
44
+ margin : 0 auto ;
45
+ display : inline ;
46
+ }
43
47
h2 {
44
48
padding-left : 2% ;
45
49
padding-right : 2% ;
You can’t perform that action at this time.
0 commit comments