Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Add billing icon #670

Merged
merged 17 commits into from
Dec 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const iconMap = {
'appointment-add': 'calendar-plus',
'appointment-remove': 'calendar-minus',
calendar: 'calendar-alt',
billing: 'file-invoice-dollar',
dashboard: 'columns',
'down-arrow': 'chevron-down',
edit: 'edit',
Expand Down
1 change: 1 addition & 0 deletions src/components/Icon/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type IconType =
| 'appointment'
| 'appointment-add'
| 'appointment-remove'
| 'billing'
| 'calendar'
| 'dashboard'
| 'down-arrow'
Expand Down
3 changes: 3 additions & 0 deletions stories/icons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ storiesOf('Icons', module)
<span>Remove Apointment: </span>
<Icon icon="appointment-remove" />
<br />
<span>Billing: </span>
<Icon icon="billing" />
<br />
<span>Calendar: </span>
<Icon icon="calendar" />
<br />
Expand Down
7 changes: 7 additions & 0 deletions test/icon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ describe('Icon', () => {
expect(removeAppointmentFontAwesomeIcon.props().icon).toStrictEqual(['fas', 'calendar-minus'])
})

it('Billing Icon renders itself without crashing', () => {
const billingIconWrapper = shallow(<Icon icon="billing" />)
const fontAwesomeIcon = billingIconWrapper.find(FontAwesomeIcon)
expect(fontAwesomeIcon).toHaveLength(1)
expect(fontAwesomeIcon.props().icon).toStrictEqual(['fas', 'file-invoice-dollar'])
})

it('Calendar Icon renders itself without crashing', () => {
const calendarIconWrapper = shallow(<Icon icon="calendar" />)
const fontAwesomeIcon = calendarIconWrapper.find(FontAwesomeIcon)
Expand Down