Skip to content

Commit

Permalink
feat: add illustrations to empty-view (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
trew authored Jan 7, 2025
1 parent 78862f5 commit 8d5b78e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/empty-view/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ import {
NoContentDark,
NoContentLight,
NoMatchDark,
NoMatchGeneralDark,
NoMatchGeneralLight,
NoMatchLight,
NoSitesDark,
NoSitesLight,
NotFoundDark,
NotFoundLight,
ProhibitedDark,
ProhibitedLight,
SettingsDark,
SettingsLight,
SuccessDark,
Expand Down Expand Up @@ -58,8 +62,13 @@ export const Illustration: Record<
"no-connection": bundleIllustrationSmart(NoConnectionDark, NoConnectionLight),
"no-content": bundleIllustrationSmart(NoContentDark, NoContentLight),
"no-match": bundleIllustrationSmart(NoMatchDark, NoMatchLight),
"no-match-general": bundleIllustrationSmart(
NoMatchGeneralDark,
NoMatchGeneralLight
),
"no-sites": bundleIllustrationSmart(NoSitesDark, NoSitesLight),
"not-found": bundleIllustrationSmart(NotFoundDark, NotFoundLight),
prohibited: bundleIllustrationSmart(ProhibitedDark, ProhibitedLight),
settings: bundleIllustrationSmart(SettingsDark, SettingsLight),
success: bundleIllustrationSmart(SuccessDark, SuccessLight),
team: bundleIllustrationSmart(TeamDark, TeamLight),
Expand Down
2 changes: 2 additions & 0 deletions components/empty-view/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ export type IllustrationKind =
| "no-connection"
| "no-content"
| "no-match"
| "no-match-general"
| "no-sites"
| "not-found"
| "prohibited"
| "settings"
| "success"
| "team"
Expand Down

0 comments on commit 8d5b78e

Please sign in to comment.