File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [" airbnb" , " @babel/preset-typescript" ],
3
- "plugins" : [" @emotion" ]
2
+ "presets" : [" airbnb" , " @babel/preset-typescript" ]
4
3
}
Original file line number Diff line number Diff line change 95
95
"@babel/preset-env" : " ^7.12.7" ,
96
96
"@babel/preset-react" : " ^7.12.7" ,
97
97
"@babel/preset-typescript" : " ^7.21.5" ,
98
- "@emotion/babel-plugin" : " ^11.7.2" ,
99
98
"@inrupt/jest-jsdom-polyfills" : " ^1.6.2" ,
100
99
"@testing-library/jest-dom" : " ^4.2.4" ,
101
100
"@testing-library/react" : " ^13.4.0" ,
152
151
"webpack-cli" : " ^3.3.12"
153
152
},
154
153
"dependencies" : {
155
- "@emotion/react" : " ^11.9.0" ,
156
- "@emotion/styled" : " ^11.8.1" ,
157
154
"@fortawesome/fontawesome-free" : " ^5.15.1" ,
158
155
"@fortawesome/fontawesome-svg-core" : " ^1.2.32" ,
159
156
"@fortawesome/free-regular-svg-icons" : " ^5.15.1" ,
Original file line number Diff line number Diff line change 1
1
// /* eslint-disable react/prop-types */
2
2
3
3
import React from 'react' ;
4
- import { css , SerializedStyles } from '@emotion/react' ;
5
4
import { ClipLoader } from 'react-spinners' ;
6
5
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
7
6
import { faCheck , faExclamationCircle } from '@fortawesome/free-solid-svg-icons' ;
8
7
9
- const override : SerializedStyles = css `
10
- display : inline;
11
- margin : 0 auto;
12
- ` ;
13
-
14
8
// Displays the result of the check when loading is done
15
9
const handleResult = ( result : boolean ) : JSX . Element =>
16
10
result ? (
@@ -23,7 +17,7 @@ const handleResult = (result: boolean): JSX.Element =>
23
17
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
24
18
const Loader = ( { loading, result } ) : JSX . Element =>
25
19
loading ? (
26
- < ClipLoader color = '#123abc' css = { override } size = { 30 } loading = { loading } />
20
+ < ClipLoader color = '#123abc' size = { 30 } loading = { loading } />
27
21
) : (
28
22
handleResult ( result )
29
23
) ;
You can’t perform that action at this time.
0 commit comments