Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
maltheism committed Jun 11, 2022
1 parent 177628a commit f89f125
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
"react-scripts": "^5.0.1",
"react-switch": "^7.0.0",
"react-tooltip": "^4.2.21",
"socket.io-client": "^4.5.1"
},
Expand Down
35 changes: 17 additions & 18 deletions src/jsx/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import {
AuthenticationCredentials,
} from './elements/authentication';

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

// Socket.io
Expand Down Expand Up @@ -1851,22 +1850,22 @@ const Configuration = (props) => {
fontSize: '16px',
verticalAlign: 'middle',
}}>
{/*<Switch*/}
{/* className='react-switch'*/}
{/* onColor="#86d3ff"*/}
{/* onHandleColor="#2693e6"*/}
{/* handleDiameter={20}*/}
{/* uncheckedIcon={false}*/}
{/* checkedIcon={false}*/}
{/* boxShadow="0px 1px 5px rgba(0, 0, 0, 0.6)"*/}
{/* activeBoxShadow="0px 0px 1px 10px rgba(0, 0, 0, 0.2)"*/}
{/* height={15}*/}
{/* width={40}*/}
{/* name='anonymize'*/}
{/* onChange={(checked) => onUserInput('anonymize', checked)}*/}
{/* checked={state.anonymize.get}*/}
{/* disabled={state.edfData.get?.files?.length > 0 ? false : true}*/}
{/*/>*/}
<Switch
className='react-switch'
onColor="#86d3ff"
onHandleColor="#2693e6"
handleDiameter={20}
uncheckedIcon={false}
checkedIcon={false}
boxShadow="0px 1px 5px rgba(0, 0, 0, 0.6)"
activeBoxShadow="0px 0px 1px 10px rgba(0, 0, 0, 0.2)"
height={15}
width={40}
name='anonymize'
onChange={(checked) => onUserInput('anonymize', checked)}
checked={state.anonymize.get}
disabled={state.edfData.get?.files?.length > 0 ? false : true}
/>
<span>Anonymize</span>
</label>
</span>
Expand Down

0 comments on commit f89f125

Please sign in to comment.