Skip to content

Commit

Permalink
Feature/APPEALS-43728-react-18-upgrade-release (#1729)
Browse files Browse the repository at this point in the history
* Shaw/APPEALS-44523 react upgrade 10 23 (#1726)

* inital commit

* updated react-redux to match frontend toolkit

* lint fix

* remove comments

* modified: package.json with new Caseflow-frontend-toolkit branch

* update toolkit hash

---------

Co-authored-by: hawkespoulterva <hawkes.poulter@va.gov>

* cashflow-frontend-toolkit commit hash updated

* updated yarn.lock

---------

Co-authored-by: AdamShawBAH <136732962+AdamShawBAH@users.noreply.github.com>
Co-authored-by: hawkespoulterva <hawkes.poulter@va.gov>
  • Loading branch information
3 people authored Oct 25, 2024
1 parent bc1bf7a commit 31513b8
Show file tree
Hide file tree
Showing 3 changed files with 1,425 additions and 1,083 deletions.
10 changes: 5 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.7.0",
"@babel/runtime-corejs2": "^7.0.0",
"@department-of-veterans-affairs/caseflow-frontend-toolkit": "https://github.com/department-of-veterans-affairs/caseflow-frontend-toolkit#a05abe6",
"@department-of-veterans-affairs/caseflow-frontend-toolkit": "https://github.com/department-of-veterans-affairs/caseflow-frontend-toolkit#23189e99",
"babel-loader": "^8.0.0",
"es5-shim": "^4.5.10",
"glamor": "^2.20.40",
"history": "^4.7.2",
"imports-loader": "^0.7.1",
"prop-types": "^15.6.0",
"react": "^16.2.0",
"react": "18.2.0",
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.2.0",
"react-dom": "18.2.0",
"react-hot-loader": "^4.12.18",
"react-redux": "^5.0.6",
"react-router-dom": "^4.2.2",
"react-redux": "7.2.0",
"react-router-dom": "5.3.4",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
"superagent": "^3.8.2",
Expand Down
10 changes: 6 additions & 4 deletions client/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';

import ReduxBase from '@department-of-veterans-affairs/caseflow-frontend-toolkit/components/ReduxBase';

Expand All @@ -8,14 +8,16 @@ import InitContainer from './containers/InitContainer';

const efolderExpress = {
init(props) {
render(
const container = document.getElementById('efolder_express_app');
const root = createRoot(container);

root.render(
<ReduxBase reducer={reducer} initialState={{
...initState,
...props
}}>
<InitContainer />
</ReduxBase>,
document.getElementById('efolder_express_app')
</ReduxBase>
);
}
};
Expand Down
Loading

0 comments on commit 31513b8

Please sign in to comment.