Skip to content

Commit

Permalink
Resolved className and bracket errors
Browse files Browse the repository at this point in the history
relates #14
  • Loading branch information
hoslack committed Feb 14, 2018
1 parent 39921eb commit 47e70f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions client/src/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@

import { FETCH_CATEGORY, CHOSEN_SYMPTOMS, FETCH_SYMPTOMS,SELECT_LOCATION } from "./types";

import { FETCH_CATEGORY, CHOSEN_SYMPTOMS, FETCH_SYMPTOMS, SELECT_LOCATION } from './types';

export const chooseCategory = category => {
return { type: FETCH_CATEGORY, payload: category };
};


export const chooseLocation = location => {
return { type: SELECT_LOCATION, payload: location };
};

export const chooseSymptoms = symptoms => {
const chosenSymptoms = Object.keys(symptoms);
const symptomsSelected = chosenSymptoms.filter(item => {
return symptoms[item] === true;
})
});
return { type: CHOSEN_SYMPTOMS, payload: symptomsSelected };
};

export const renderSymptoms = category => {
return { type: FETCH_SYMPTOMS, payload: category }

return { type: FETCH_SYMPTOMS, payload: category };
};
2 changes: 1 addition & 1 deletion client/src/containers/LocationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LocationForm extends Component {
options={locationdata}
/>
</div>
<div class="mw7 center pa4 flex items-center justify-center">
<div className="mw7 center pa4 flex items-center justify-center">
<Link
to="/symptoms"
className="f4 link dim br-pill bg-green washed-green no-underline b--orange ba grow pv2 ph3 dib mr4"
Expand Down

0 comments on commit 47e70f2

Please sign in to comment.