Skip to content

Commit

Permalink
Add icons for species list management (#5)
Browse files Browse the repository at this point in the history
Resolves: observation/app#38

- Add icon for species lists
- Add icon for clear input field
  • Loading branch information
SjaakSchilperoort authored Sep 8, 2023
1 parent ecca2c6 commit 1d5b867
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 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 Expand Up @@ -108,6 +109,7 @@ export const IconRarityRelativelyCommon = (props: IconAppearanceProps) => (
)
export const IconSelection = (props: IconAppearanceProps) => <Icon name="selection" {...props} />
export const IconSettings = (props: IconAppearanceProps) => <Icon name="settings" {...props} />
export const IconSpeciesLists = (props: IconAppearanceProps) => <Icon name="species-lists" {...props} />
export const IconStatistics = (props: IconAppearanceProps) => <Icon name="statistics" {...props} />
export const IconSuccess = (props: IconAppearanceProps) => <Icon name="success" {...props} />
export const IconTabAdd = (props: IconAppearanceProps) => <Icon name="tab-add" {...props} />
Expand Down
8 changes: 8 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 @@ -57,6 +58,7 @@ import { faShareNodes as faShareNodesLight } from '@fortawesome/pro-light-svg-ic
import { faSlidersH as faSlidersHLight } from '@fortawesome/pro-light-svg-icons/faSlidersH'
import { faSquare as faSquareLight } from '@fortawesome/pro-light-svg-icons/faSquare'
import { faStars as faStarsLight } from '@fortawesome/pro-light-svg-icons/faStars'
import { faSwatchbook as faSwatchbookLight } from '@fortawesome/pro-light-svg-icons/faSwatchbook'
import { faTally as faTallyLight } from '@fortawesome/pro-light-svg-icons/faTally'
import { faTimes as faTimesLight } from '@fortawesome/pro-light-svg-icons/faTimes'
import { faTrashAlt as faTrashAltLight } from '@fortawesome/pro-light-svg-icons/faTrashAlt'
Expand Down Expand Up @@ -95,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 @@ -124,6 +127,7 @@ import { faShareNodes as faShareNodesSolid } from '@fortawesome/pro-solid-svg-ic
import { faSlidersH as faSlidersHSolid } from '@fortawesome/pro-solid-svg-icons/faSlidersH'
import { faSquare as faSquareSolid } from '@fortawesome/pro-solid-svg-icons/faSquare'
import { faStars as faStarsSolid } from '@fortawesome/pro-solid-svg-icons/faStars'
import { faSwatchbook as faSwatchbookSolid } from '@fortawesome/pro-solid-svg-icons/faSwatchbook'
import { faTally as faTallySolid } from '@fortawesome/pro-solid-svg-icons/faTally'
import { faTimes as faTimesSolid } from '@fortawesome/pro-solid-svg-icons/faTimes'
import { faTrashAlt as faTrashAltSolid } from '@fortawesome/pro-solid-svg-icons/faTrashAlt'
Expand All @@ -145,6 +149,7 @@ type IconName =
| 'back'
| 'badge'
| 'check'
| 'circle-xmark'
| 'close'
| 'collapse'
| 'completed'
Expand Down Expand Up @@ -194,6 +199,7 @@ type IconName =
| 'settings'
| 'share'
| 'show'
| 'species-lists'
| 'statistics'
| 'success'
| 'tab-add'
Expand All @@ -216,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 Expand Up @@ -268,6 +275,7 @@ const icons: { [key in IconName]: { light: IconDefinition; solid: IconDefinition
? { light: faArrowUpFromSquareLight, solid: faArrowUpFromSquareSolid }
: { light: faShareNodesLight, solid: faShareNodesSolid },
show: { light: faEyeLight, solid: faEyeSolid },
'species-lists': { light: faSwatchbookLight, solid: faSwatchbookSolid },
statistics: { light: faChartColumnLight, solid: faChartColumnSolid },
success: { light: faCircleCheckLight, solid: faCircleCheckSolid },
'tab-add': { light: faCirclePlusLight, solid: faCirclePlusSolid },
Expand Down

0 comments on commit 1d5b867

Please sign in to comment.