Skip to content

Commit

Permalink
fix: add new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyzif committed Sep 9, 2024
1 parent 5604e8b commit ae4e791
Show file tree
Hide file tree
Showing 14 changed files with 121 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_act_lt_delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_annotation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_cohort.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_funnel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_privileges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_refresh-frequency.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_text-widget.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_pm_lt_account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_pm_lt_dashboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_pm_lt_journey-analysis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_pm_lt_organization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ import ActiveIcon from 'src/assets/svg/mp_info_lt_active.svg?react'
import LinkIcon from 'src/assets/svg/mp_info_link.svg?react'
import InfoIcon from 'src/assets/svg/mp_info_lt_info.svg?react'
import Placeholder from 'src/assets/svg/mp_info_lt_placeholder.svg?react'
import Organization from 'src/assets/svg/mp_pm_lt_organization.svg?react'
import Analysis from 'src/assets/svg/mp_pm_lt_journey-analysis.svg?react'
import Dashboard from 'src/assets/svg/mp_pm_lt_dashboard.svg?react'
import Account from 'src/assets/svg/mp_pm_lt_account.svg?react'
import TextWidget from 'src/assets/svg/mp_info_lt_text-widget.svg?react'
import RefreshFrequency from 'src/assets/svg/mp_info_lt_refresh-frequency.svg?react'
import Privileges from 'src/assets/svg/mp_info_lt_privileges.svg?react'
import Funnel from 'src/assets/svg/mp_info_lt_funnel.svg?react'
import Cohort from 'src/assets/svg/mp_info_lt_cohort.svg?react'
import Annotation from 'src/assets/svg/mp_info_lt_annotation.svg?react'
import Delete from 'src/assets/svg/mp_act_lt_delete.svg?react'

export {
AddIcon,
Expand Down Expand Up @@ -136,4 +147,15 @@ export {
ActiveIcon,
InfoIcon,
Placeholder,
Organization,
Analysis,
Dashboard,
Account,
TextWidget,
RefreshFrequency,
Privileges,
Funnel,
Cohort,
Annotation,
Delete,
}
55 changes: 55 additions & 0 deletions src/constants/Icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ import {
LinkIcon,
InfoIcon,
Placeholder,
Organization,
Analysis,
Dashboard,
Account,
TextWidget,
RefreshFrequency,
Privileges,
Funnel,
Cohort,
Annotation,
Delete,
} from 'src/components/icons'

export const Icons: Record<IconNames, IconOptions> = {
Expand Down Expand Up @@ -435,4 +446,48 @@ export const Icons: Record<IconNames, IconOptions> = {
light: Placeholder,
default: 'light',
},
organization: {
light: Organization,
default: 'light',
},
analysis: {
light: Analysis,
default: 'light',
},
dashboard: {
light: Dashboard,
default: 'light',
},
account: {
light: Account,
default: 'light',
},
textWidget: {
light: TextWidget,
default: 'light',
},
refreshFrequency: {
light: RefreshFrequency,
default: 'light',
},
privileges: {
light: Privileges,
default: 'light',
},
funnel: {
light: Funnel,
default: 'light',
},
cohort: {
light: Cohort,
default: 'light',
},
annotation: {
light: Annotation,
default: 'light',
},
delete: {
light: Delete,
default: 'light',
},
} as const
11 changes: 11 additions & 0 deletions src/types/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,14 @@ export type IconNames =
| 'link'
| 'info'
| 'placeholder'
| 'organization'
| 'analysis'
| 'dashboard'
| 'account'
| 'textWidget'
| 'refreshFrequency'
| 'privileges'
| 'funnel'
| 'cohort'
| 'annotation'
| 'delete'

0 comments on commit ae4e791

Please sign in to comment.