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

Commit b81d9d9

Browse files
authored
feat(icon): add billing icon (#670)
1 parent a68a280 commit b81d9d9

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/components/Icon/Icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const iconMap = {
1212
'appointment-add': 'calendar-plus',
1313
'appointment-remove': 'calendar-minus',
1414
calendar: 'calendar-alt',
15+
billing: 'file-invoice-dollar',
1516
dashboard: 'columns',
1617
'down-arrow': 'chevron-down',
1718
edit: 'edit',

src/components/Icon/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export type IconType =
44
| 'appointment'
55
| 'appointment-add'
66
| 'appointment-remove'
7+
| 'billing'
78
| 'calendar'
89
| 'dashboard'
910
| 'down-arrow'

stories/icons.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ storiesOf('Icons', module)
2727
<span>Remove Apointment: </span>
2828
<Icon icon="appointment-remove" />
2929
<br />
30+
<span>Billing: </span>
31+
<Icon icon="billing" />
32+
<br />
3033
<span>Calendar: </span>
3134
<Icon icon="calendar" />
3235
<br />

test/icon.test.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ describe('Icon', () => {
3737
expect(removeAppointmentFontAwesomeIcon.props().icon).toStrictEqual(['fas', 'calendar-minus'])
3838
})
3939

40+
it('Billing Icon renders itself without crashing', () => {
41+
const billingIconWrapper = shallow(<Icon icon="billing" />)
42+
const fontAwesomeIcon = billingIconWrapper.find(FontAwesomeIcon)
43+
expect(fontAwesomeIcon).toHaveLength(1)
44+
expect(fontAwesomeIcon.props().icon).toStrictEqual(['fas', 'file-invoice-dollar'])
45+
})
46+
4047
it('Calendar Icon renders itself without crashing', () => {
4148
const calendarIconWrapper = shallow(<Icon icon="calendar" />)
4249
const fontAwesomeIcon = calendarIconWrapper.find(FontAwesomeIcon)

0 commit comments

Comments
 (0)