Skip to content

Commit

Permalink
fix: add new icons (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyzif authored Aug 26, 2024
1 parent 3965e60 commit db88c4e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assets/svg/mp_act_lt_filter.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_link.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_active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ import UnlockIcon from 'src/assets/svg/mp_act_lt_unlock.svg?react'
import NotificationIcon from 'src/assets/svg/mp_pm_lt_notification.svg?react'
import PremiumIconDt from 'src/assets/svg/mp_info_dt_premium.svg?react'
import OverviewIconDt from 'src/assets/svg/mp_pm_dt_overview.svg?react'
import FilterIcon from 'src/assets/svg/mp_act_lt_filter.svg?react'
import ActiveIcon from 'src/assets/svg/mp_info_lt_active.svg?react'
import LinkIcon from 'src/assets/svg/mp_info_link.svg?react'

export {
AddIcon,
Expand Down Expand Up @@ -126,4 +129,7 @@ export {
NotificationIcon,
PremiumIconDt,
OverviewIconDt,
FilterIcon,
LinkIcon,
ActiveIcon,
}
15 changes: 15 additions & 0 deletions src/constants/Icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ import {
NotificationIcon,
PremiumIconDt,
OverviewIconDt,
FilterIcon,
ActiveIcon,
LinkIcon,
} from 'src/components/icons'

export const Icons: Record<IconNames, IconOptions> = {
Expand Down Expand Up @@ -410,4 +413,16 @@ export const Icons: Record<IconNames, IconOptions> = {
'duo-tone': OverviewIconDt,
default: 'duo-tone',
},
filter: {
light: FilterIcon,
default: 'light',
},
active: {
light: ActiveIcon,
default: 'light',
},
link: {
light: LinkIcon,
default: 'light',
},
} as const
3 changes: 3 additions & 0 deletions src/types/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,6 @@ export type IconNames =
| 'myHub'
| 'favorite'
| 'insights'
| 'filter'
| 'active'
| 'link'

0 comments on commit db88c4e

Please sign in to comment.