Skip to content

Commit

Permalink
clear some package.json, add (optional) for optional ones, comment ou…
Browse files Browse the repository at this point in the history
…t wdyr, change color for the switch
  • Loading branch information
haihan-lin authored and JackWilb committed Aug 11, 2021
1 parent cbb52c0 commit 8f2cb1c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
3 changes: 0 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.60",
"@material-ui/pickers": "^3.3.10",
"@types/clipboard": "^2.0.1",
"@types/d3": "^7.0.0",
"@types/jest": "26.0.23",
"@types/jquery": "^3.5.5",
"@types/react": "^17.0.11",
"@types/react-dom": "17.0.8",
"@types/react-grid-layout": "^1.1.1",
"@types/react-native": "^0.64.10",
"@types/react-router-dom": "^5.1.7",
"@types/styled-components": "^5.1.10",
"@visdesignlab/trrack": "^2.0.0-alpha.10",
"@welldone-software/why-did-you-render": "^6.2.0",
"axios": "^0.21.1",
"d3": "^7.0.0",
"jquery": "^3.6.0",
"lineupjsx": "^4.0.0",
"material-ui-nested-menu-item": "^1.0.2",
"mobx": "^6.3.2",
"mobx-react": "^7.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const CurrentView: FC<Props> = ({ totalCaseNum }: Props) => {
<ListItemSecondaryAction>
<Switch
checked={store.state.showZero}
color="primary"
onChange={(e) => { store.configStore.toggleShowZero(e.target.checked) }}
/>
</ListItemSecondaryAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type Props = { surgeryList: any[] }
const SurgerySearchBar: FC<Props> = ({ surgeryList }: Props) => {
const store = useContext(Store)
const styles = useStyles()

const searchHandler = (input: any) => {
if (input) {
if (!store.state.proceduresSelection.includes(input.value)) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Components/Utilities/TopMenu/AddModeTopMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const AddModeTopMenu: FC<Props> = ({ addingChartType }: Props) => {
<Grid item xs>
<div className={styles.centerAlignment}>
<FormControl required={titleOneRequied} className={styles.formControl}>
<InputLabel>{titleOne}</InputLabel>
<InputLabel>{titleOne}{titleOneRequied ? "" : " (Optional)"}</InputLabel>
<Select
onChange={(e) => { setYValueSelection(e.target.value as string) }}>
{DropdownGenerator(addingChartType > -1 ? addOptions[addingChartType][0] : [], !titleOneRequied)}
Expand Down Expand Up @@ -132,7 +132,7 @@ const AddModeTopMenu: FC<Props> = ({ addingChartType }: Props) => {
<Grid item xs>
<div className={styles.centerAlignment}>
<FormControl className={styles.formControl}>
<InputLabel>Outcome/Intervention</InputLabel>
<InputLabel>Outcome (Optional)</InputLabel>
<Select onChange={(e) => { console.log(outcomeComparisonSelection); setOutcomeComparisonSelection(e.target.value as string) }}
>
{DropdownGenerator(OutcomeOptions, true)}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import './index.css';
// }
// }

whyDidYouRender(React, {
trackAllPureComponents: true,
// exclude: [/XGrid|RowCells|GridCell/],
});
// whyDidYouRender(React, {
// trackAllPureComponents: true,
// // exclude: [/XGrid|RowCells|GridCell/],
// });

ReactDOM.render(
<>
Expand Down

0 comments on commit 8f2cb1c

Please sign in to comment.