Skip to content

Commit

Permalink
react-datepicker was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
maltheism committed Jun 11, 2022
1 parent 2532288 commit 177628a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"prop-types": "^15.8.1",
"react": "^18.1.0",
"react-color": "^2.19.3",
"react-datepicker": "^4.8.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
"react-scripts": "^5.0.1",
Expand All @@ -23,7 +24,7 @@
"@babel/eslint-parser": "^7.18.2",
"concurrently": "^7.2.1",
"cross-env": "^7.0.3",
"electron": "^",
"electron": "^19.0.3",
"electron-builder": "^23.0.3",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.17.0",
Expand Down
18 changes: 9 additions & 9 deletions src/jsx/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import '../css/Configuration.css';
import '../../node_modules/@fortawesome/fontawesome-free/css/all.css';
// import 'react-datepicker/dist/react-datepicker.css';
import 'react-datepicker/dist/react-datepicker.css';
import EEGRun from './types/EEGRun';
import Papa from 'papaparse';

Expand All @@ -24,7 +24,7 @@ import {

// todo remove Switch and DatePicker
// import Switch from 'react-switch';
// import DatePicker from 'react-datepicker';
import DatePicker from 'react-datepicker';

// Socket.io
import {SocketContext} from './socket.io';
Expand Down Expand Up @@ -1706,13 +1706,13 @@ const Configuration = (props) => {
<label className="label" htmlFor={props.id}>
<b>Date of Birth <span className="red">*</span></b>
</label>
{/*<DatePicker id='participantDOB'*/}
{/* name='participantDOB'*/}
{/* required={true}*/}
{/* selected={state.participantDOB.get}*/}
{/* dateFormat="yyyy-MM-dd"*/}
{/* onChange={(date) => onUserInput('participantDOB', date)}*/}
{/*/>*/}
<DatePicker id='participantDOB'
name='participantDOB'
required={true}
selected={state.participantDOB.get}
dateFormat="yyyy-MM-dd"
onChange={(date) => onUserInput('participantDOB', date)}
/>
</div>
<div className='small-pad'>
<SelectInput id='participantSex'
Expand Down

0 comments on commit 177628a

Please sign in to comment.