Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: icons placeholder #385

Merged
merged 6 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/assets/svg/mp_info_lt_placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ 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'
import InfoIcon from 'src/assets/svg/mp_info_lt_info.svg?react'
import Placeholder from 'src/assets/svg/mp_info_lt_placeholder.svg?react'

export {
AddIcon,
Expand Down Expand Up @@ -134,4 +135,5 @@ export {
LinkIcon,
ActiveIcon,
InfoIcon,
Placeholder,
}
5 changes: 5 additions & 0 deletions src/constants/Icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import {
ActiveIcon,
LinkIcon,
InfoIcon,
Placeholder,
} from 'src/components/icons'

export const Icons: Record<IconNames, IconOptions> = {
Expand Down Expand Up @@ -430,4 +431,8 @@ export const Icons: Record<IconNames, IconOptions> = {
light: InfoIcon,
default: 'light',
},
placeholder: {
light: Placeholder,
default: 'light',
},
} as const
2 changes: 2 additions & 0 deletions src/types/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ export type IconNames =
| 'active'
| 'link'
| 'info'
| 'placeholder'

Loading