Skip to content

Commit 3c32c2f

Browse files
committed
add latest changes, babelrc
2 parents e829e19 + ee45b5c commit 3c32c2f

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
<<<<<<< HEAD
23
"presets": ["airbnb", "@babel/preset-typescript"],
34
// "plugins": ["@emotion"]
5+
=======
6+
"presets": ["airbnb", "@babel/preset-typescript"]
7+
>>>>>>> dev
48
}

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
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",
@@ -152,8 +151,6 @@
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",

src/app/components/Loader.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
// /* eslint-disable react/prop-types */
22

33
import React from 'react';
4-
import { css, SerializedStyles } from '@emotion/react';
54
import { ClipLoader } from 'react-spinners';
65
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
76
import { 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
159
const 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
2418
const 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} style={{ display: "inline", margin: "0 auto" }}/>
2721
) : (
2822
handleResult(result)
2923
);

src/backend/__tests__/linkFiber.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @jest-environment node
3+
*/
14
import linkFiberInitialization from '../routers/linkFiber';
25
import timeJumpInitialization from '../controllers/timeJump';
36
import componentActionsRecord from '../models/masterState';

src/backend/__tests__/routes.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @jest-environment node
3+
*/
14
import { JSDOM } from 'jsdom';
25

36
import { Routes, Route } from '../models/routes';

src/backend/controllers/createTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
* @param currentFiberNode A Fiber object
3333
* @return An instance of a Tree object
3434
*/
35-
// TODO: Not sure why the ritd need to be outside of the _createTree function. Want to put inside, but in case this need to be keep track for front end.
35+
// TODO: Not sure why the ritd need to be outside of the _createTree function. Want to put inside, but in case this need to be keep track for front end.
3636
export default function createTree(currentFiberNode: Fiber): Tree {
3737
let rtidCounter: number = 0;
3838
return _createTree(currentFiberNode, new Tree('root', 'root'));

0 commit comments

Comments
 (0)