Skip to content

Commit

Permalink
Merge pull request #75 from evanawebb/73-remove-appending-service-as-…
Browse files Browse the repository at this point in the history
…text-in-first-category

#73 Remove appending services As Text In First Category
  • Loading branch information
vijayyadav06 authored Mar 31, 2020
2 parents a7ddc4c + 8838b3e commit ceef1d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/appBar/appBarClass.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class CustomAppBar extends React.Component {
getServiceChildren(openCategory);
openDrawer();
}}>
CHOOSE {CATEGORY_LABELS[openCategory].toUpperCase()} SERVICES
CHOOSE {CATEGORY_LABELS[openCategory].topBar}
{selectedServices[openCategory] && Object.keys(selectedServices[openCategory]).length > 0
? ` (${Object.keys(selectedServices[openCategory]).length})`
: null}
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/redux/modules/services/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ export const API_URL = API_BASE + API_PREFIX;

// This is all categories in our current dataset
export const CATEGORY_LABELS = {
566: 'Housing and Utility Assistance',
565: 'Health Care',
566: {name: 'Housing and Utility Assistance', topBar: 'HOUSING AND UTILITY ASSISTANCE SERVICES'},
565: {name: 'Health Care Services', topBar: 'HEATH CARE SERVICES'},
// 561: 'Where to Donate',
// 832: 'Advocacy, Planning and Professional Development',
563: 'Emergency Food, Clothing, Furniture and Disaster Services',
563: {name: 'Emergency Food, Clothing, Furniture and Disaster Services', topBar: 'EMERGENCY FOOD, CLOTHING, FURNITURE AND DISASTER SERVICES'}
// 562: 'Arts, Education, Employment and Income Support',
// 560: 'Adult Care and Youth Programs',
// 568: 'Mental Health and Counseling Resources',
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/scenes/chooseCategory/chooseCategoryClass.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class ChooseCategory extends React.Component {
onClick={() => this.chooseCategory(id)}
raised
className="jumbo bg-primary text-white wrap-lines mb30">
{CATEGORY_LABELS[id]}
{CATEGORY_LABELS[id].name}
</Button>
))}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class ChooseCategory extends React.Component {
const id = this.props.openCategory;

if (id && CATEGORY_LABELS[id]) {
return CATEGORY_LABELS[id];
return CATEGORY_LABELS[id].name;
}

return '';
Expand Down

0 comments on commit ceef1d2

Please sign in to comment.