Skip to content

Commit 8ed39b6

Browse files
authored
Allow for symptoms to be diagnosed (#22)
1 parent edaab5f commit 8ed39b6

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

frontend/src/components/Symptom/SymptomCard.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ class SymptomCard extends Component {
1010
diagnose,
1111
fetchAllSymptoms,
1212
symptoms,
13-
currentSymptoms,
14-
updateSymptoms,
1513
history
1614
} = this.props;
1715
return (
@@ -26,13 +24,11 @@ class SymptomCard extends Component {
2624
</Card.Header>
2725
<Card.Description>
2826
<SymptomForm
29-
user={user}
30-
diagnose={diagnose}
31-
fetchAllSymptoms={fetchAllSymptoms}
32-
symptoms={symptoms}
33-
currentSymptoms={currentSymptoms}
34-
updateSymptoms={updateSymptoms}
35-
history={history}
27+
user={user}
28+
diagnose={diagnose}
29+
fetchAllSymptoms={fetchAllSymptoms}
30+
symptoms={symptoms}
31+
history={history}
3632
/>
3733
</Card.Description>
3834
</Card.Content>

frontend/src/components/homepage.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class HomePage extends Component {
1111
diagnose,
1212
fetchAllSymptoms,
1313
symptoms,
14-
currentSymptoms,
15-
updateSymptoms,
1614
history
1715
} = this.props;
1816
return (
@@ -25,8 +23,6 @@ class HomePage extends Component {
2523
diagnose={diagnose}
2624
fetchAllSymptoms={fetchAllSymptoms}
2725
symptoms={symptoms}
28-
currentSymptoms={currentSymptoms}
29-
updateSymptoms={updateSymptoms}
3026
history={history}
3127
/>
3228
</div>

frontend/src/containers/App.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ class App extends Component {
2323
diagnose={actions.diagnose}
2424
fetchAllSymptoms={actions.fetchAllSymptoms}
2525
symptoms={diagnosis.allSymptoms}
26-
currentSymptoms={diagnosis.symptoms}
27-
updateSymptoms={actions.updateSymptoms}
2826
history={history}
29-
active={'/'} />
27+
active={'/'}
28+
/>
3029
</div>
3130
);
3231
}

0 commit comments

Comments
 (0)