Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inital commit #1710

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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#upgrade-test",
"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
4 changes: 4 additions & 0 deletions client/src/containers/InitContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import RecentDownloadsContainer from './RecentDownloadsContainer';
import FeedbackContainer from './FeedbackContainer';

class InitContainer extends React.PureComponent {
// componentDidMount() {
// console.log('InitContainer mounted. Props:', this.props);
// console.log('Redux store state:', this.context.store.getState());
// }
render() {
return <BrowserRouter basename="/">
<React.Fragment>
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
Loading