Skip to content

Commit

Permalink
fix(SLB-307): add no icon fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed May 22, 2024
1 parent a9a8801 commit 996181c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/schema/src/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ type BlockQuote @type(id: "custom/quote") {
image: MediaImage @resolveEditorBlockMedia
}

enum InfoGridIcon @default @value(string: "EMAIL") {
enum InfoGridIcon @default @value(string: "NONE") {
EMAIL
PHONE
LIFE_RING
NONE
}
type BlockInfoGrid @type(id: "custom/info-grid") {
gridItems: [BlockInfoGridItem]! @resolveEditorBlockChildren
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ const iconMap = {
[InfoGridIcon.Email]: <MailIcon />,
[InfoGridIcon.Phone]: <PhoneIcon />,
[InfoGridIcon.LifeRing]: <LifeRing />,
};
[InfoGridIcon.None]: null,
} as const;

0 comments on commit 996181c

Please sign in to comment.