Skip to content

Commit 8d5b78e

Browse files
authored
feat: add illustrations to empty-view (#375)
1 parent 78862f5 commit 8d5b78e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

components/empty-view/src/constants.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ import {
2323
NoContentDark,
2424
NoContentLight,
2525
NoMatchDark,
26+
NoMatchGeneralDark,
27+
NoMatchGeneralLight,
2628
NoMatchLight,
2729
NoSitesDark,
2830
NoSitesLight,
2931
NotFoundDark,
3032
NotFoundLight,
33+
ProhibitedDark,
34+
ProhibitedLight,
3135
SettingsDark,
3236
SettingsLight,
3337
SuccessDark,
@@ -58,8 +62,13 @@ export const Illustration: Record<
5862
"no-connection": bundleIllustrationSmart(NoConnectionDark, NoConnectionLight),
5963
"no-content": bundleIllustrationSmart(NoContentDark, NoContentLight),
6064
"no-match": bundleIllustrationSmart(NoMatchDark, NoMatchLight),
65+
"no-match-general": bundleIllustrationSmart(
66+
NoMatchGeneralDark,
67+
NoMatchGeneralLight
68+
),
6169
"no-sites": bundleIllustrationSmart(NoSitesDark, NoSitesLight),
6270
"not-found": bundleIllustrationSmart(NotFoundDark, NotFoundLight),
71+
prohibited: bundleIllustrationSmart(ProhibitedDark, ProhibitedLight),
6372
settings: bundleIllustrationSmart(SettingsDark, SettingsLight),
6473
success: bundleIllustrationSmart(SuccessDark, SuccessLight),
6574
team: bundleIllustrationSmart(TeamDark, TeamLight),

components/empty-view/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ export type IllustrationKind =
1313
| "no-connection"
1414
| "no-content"
1515
| "no-match"
16+
| "no-match-general"
1617
| "no-sites"
1718
| "not-found"
19+
| "prohibited"
1820
| "settings"
1921
| "success"
2022
| "team"

0 commit comments

Comments
 (0)