Skip to content

Commit

Permalink
Merge pull request #362 from BIDMCDigitalPsychiatry/issue-798
Browse files Browse the repository at this point in the history
dependency fixes
  • Loading branch information
sarithapillai8 authored Feb 20, 2024
2 parents 02abb70 + 5fc122e commit 23c55a4
Show file tree
Hide file tree
Showing 9 changed files with 13,328 additions and 13,270 deletions.
109 changes: 83 additions & 26 deletions BoxGame/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions BoxGame/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@hot-loader/react-dom": "^17.0.2",
"@material-ui/core": "^4.12.4",
"@types/react-hot-loader": "^4.1.1",
"i18next": "^23.8.2",
"i18next-http-backend": "^2.4.3",
"material-icons": "^1.13.12",
"react": "^18.2.0",
"react-bootstrap": "^2.10.0",
"react-dom": "^18.2.0",
"react-hot-loader": "^4.13.1",
"react-hot-loader": "^3.1.1",
"react-i18next": "^14.0.3",
"react-scripts": "5.0.1",
"typescript": "^5.3.3",
Expand All @@ -26,7 +27,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
},
"overrides": {
"nth-check": "2.1.1",
"postcss": "8.4.32"
Expand Down
2 changes: 2 additions & 0 deletions BoxGame/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* @author ZCO Engineer
* @copyright (c) 2020, ZCO
*/
require("react-hot-loader/patch")

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { AppContainer } from "react-hot-loader";
Expand Down
2 changes: 2 additions & 0 deletions CatsnDogs/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* @author ZCO Engineer
* @copyright (c) 2020, ZCO
*/
require("react-hot-loader/patch")

import 'bootstrap/dist/css/bootstrap.min.css';

import * as React from 'react';
Expand Down
5 changes: 1 addition & 4 deletions JewelsPro/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions JewelsPro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@hot-loader/react-dom": "^17.0.2",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@types/react-hot-loader": "^4.1.1",
"bootstrap": "^5.3.2",
"i18next": "^23.8.2",
"i18next-http-backend": "^2.4.3",
Expand Down Expand Up @@ -40,8 +41,5 @@
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"@types/react-hot-loader": "^4.1.1"
}
]
}
4 changes: 2 additions & 2 deletions JewelsPro/src/components/jewels/Jewels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class Jewels extends React.Component<{}, AppState> {
}

messageEvent = () => {
const eventMethod = !!window.addEventListener ? "addEventListener" : "attachEvent"
const eventMethod ="addEventListener"
const eventer = window[eventMethod]
const messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message"
const messageEvent = "onmessage"
// Listen to message from child window
eventer(
messageEvent,
Expand Down
3 changes: 2 additions & 1 deletion JewelsPro/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* @author ZCO Engineer
* @copyright (c) 2020, ZCO
*/
import 'bootstrap/dist/css/bootstrap.min.css';
require("react-hot-loader/patch")
import 'bootstrap/dist/css/bootstrap.min.css';

import * as React from 'react';
import * as ReactDOM from 'react-dom';
Expand Down
Loading

0 comments on commit 23c55a4

Please sign in to comment.