Skip to content

Commit

Permalink
Add icon for clear input field
Browse files Browse the repository at this point in the history
  • Loading branch information
SjaakSchilperoort committed Sep 4, 2023
1 parent 7063504 commit f03c4e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const IconAdvance = (props: IconAppearanceProps) => <Icon name="advance"
export const IconAnalytics = (props: IconAppearanceProps) => <Icon name="analytics" {...props} />
export const IconBadge = (props: IconAppearanceProps) => <Icon name="badge" {...props} />
export const IconCheck = (props: IconAppearanceProps) => <Icon name="check" {...props} />
export const IconCircleXmark = (props: IconAppearanceProps) => <Icon name="circle-xmark" {...props} />
export const IconClose = (props: IconAppearanceProps) => <Icon name="close" {...props} />
export const IconCollapse = (props: IconAppearanceProps) => <Icon name="collapse" {...props} />
export const IconCompleted = (props: IconAppearanceProps) => <Icon name="completed" {...props} />
Expand Down
4 changes: 4 additions & 0 deletions src/lib/Icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { faCircle as faCircleLight } from '@fortawesome/pro-light-svg-icons/faCi
import { faCircleCheck as faCircleCheckLight } from '@fortawesome/pro-light-svg-icons/faCircleCheck'
import { faCirclePlus as faCirclePlusLight } from '@fortawesome/pro-light-svg-icons/faCirclePlus'
import { faCircleUser as faCircleUserLight } from '@fortawesome/pro-light-svg-icons/faCircleUser'
import { faCircleXmark as faCircleXmarkLight } from '@fortawesome/pro-light-svg-icons/faCircleXmark'
import { faClone as faCloneLight } from '@fortawesome/pro-light-svg-icons/faClone'
import { faCog as faCogLight } from '@fortawesome/pro-light-svg-icons/faCog'
import { faCommentAltExclamation as faCommentAltExclamationLight } from '@fortawesome/pro-light-svg-icons/faCommentAltExclamation'
Expand Down Expand Up @@ -96,6 +97,7 @@ import { faCircle as faCircleSolid } from '@fortawesome/pro-solid-svg-icons/faCi
import { faCircleCheck as faCircleCheckSolid } from '@fortawesome/pro-solid-svg-icons/faCircleCheck'
import { faCirclePlus as faCirclePlusSolid } from '@fortawesome/pro-solid-svg-icons/faCirclePlus'
import { faCircleUser as faCircleUserSolid } from '@fortawesome/pro-solid-svg-icons/faCircleUser'
import { faCircleXmark as faCircleXmarkSolid } from '@fortawesome/pro-solid-svg-icons/faCircleXmark'
import { faClone as faCloneSolid } from '@fortawesome/pro-solid-svg-icons/faClone'
import { faCog as faCogSolid } from '@fortawesome/pro-solid-svg-icons/faCog'
import { faCommentAltExclamation as faCommentAltExclamationSolid } from '@fortawesome/pro-solid-svg-icons/faCommentAltExclamation'
Expand Down Expand Up @@ -147,6 +149,7 @@ type IconName =
| 'back'
| 'badge'
| 'check'
| 'circle-xmark'
| 'close'
| 'collapse'
| 'completed'
Expand Down Expand Up @@ -219,6 +222,7 @@ const icons: { [key in IconName]: { light: IconDefinition; solid: IconDefinition
back: { light: faChevronLeftLight, solid: faChevronLeftSolid },
badge: { light: faBadgeLight, solid: faBadgeSolid },
check: { light: faCheckLight, solid: faCheckSolid },
'circle-xmark': { light: faCircleXmarkLight, solid: faCircleXmarkSolid },
close: { light: faTimesLight, solid: faTimesSolid },
collapse: { light: faAngleUpLight, solid: faAngleUpSolid },
completed: { light: faCheckSquareLight, solid: faCheckSquareSolid },
Expand Down

0 comments on commit f03c4e0

Please sign in to comment.