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 11{
2- "presets" : [" airbnb" , " @babel/preset-typescript" ],
3- "plugins" : [" @emotion" ]
2+ "presets" : [" airbnb" , " @babel/preset-typescript" ]
43}
Original file line number Diff line number Diff line change 9595 "@babel/preset-env" : " ^7.12.7" ,
9696 "@babel/preset-react" : " ^7.12.7" ,
9797 "@babel/preset-typescript" : " ^7.21.5" ,
98- "@emotion/babel-plugin" : " ^11.7.2" ,
9998 "@inrupt/jest-jsdom-polyfills" : " ^1.6.2" ,
10099 "@testing-library/jest-dom" : " ^4.2.4" ,
101100 "@testing-library/react" : " ^13.4.0" ,
152151 "webpack-cli" : " ^3.3.12"
153152 },
154153 "dependencies" : {
155- "@emotion/react" : " ^11.9.0" ,
156- "@emotion/styled" : " ^11.8.1" ,
157154 "@fortawesome/fontawesome-free" : " ^5.15.1" ,
158155 "@fortawesome/fontawesome-svg-core" : " ^1.2.32" ,
159156 "@fortawesome/free-regular-svg-icons" : " ^5.15.1" ,
Original file line number Diff line number Diff line change 11// /* eslint-disable react/prop-types */
22
33import React from 'react' ;
4- import { css , SerializedStyles } from '@emotion/react' ;
54import { ClipLoader } from 'react-spinners' ;
65import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
76import { faCheck , faExclamationCircle } from '@fortawesome/free-solid-svg-icons' ;
87
9- const override : SerializedStyles = css `
10- display : inline;
11- margin : 0 auto;
12- ` ;
13-
148// Displays the result of the check when loading is done
159const handleResult = ( result : boolean ) : JSX . Element =>
1610 result ? (
@@ -23,7 +17,7 @@ const handleResult = (result: boolean): JSX.Element =>
2317// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
2418const Loader = ( { loading, result } ) : JSX . Element =>
2519 loading ? (
26- < ClipLoader color = '#123abc' css = { override } size = { 30 } loading = { loading } />
20+ < ClipLoader color = '#123abc' size = { 30 } loading = { loading } />
2721 ) : (
2822 handleResult ( result )
2923 ) ;
You can’t perform that action at this time.
0 commit comments