Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd09c3e commit fb9acf7Copy full SHA for fb9acf7
site/src/modules/notifications/NotificationsInbox/InboxAvatar.stories.tsx
@@ -15,6 +15,12 @@ export const Custom: Story = {
15
},
16
};
17
18
+export const EmptyIcon: Story = {
19
+ args: {
20
+ icon: "",
21
+ },
22
+};
23
+
24
export const FallbackWorkspace: Story = {
25
args: {
26
icon: "DEFAULT_ICON_WORKSPACE",
site/src/modules/notifications/NotificationsInbox/InboxAvatar.tsx
@@ -36,6 +36,10 @@ type InboxAvatarProps = {
36
37
38
export const InboxAvatar: FC<InboxAvatarProps> = ({ icon }) => {
39
+ if (icon === "") {
40
+ return <Avatar variant="icon">{fallbackIcons.DEFAULT_ICON_OTHER}</Avatar>;
41
+ }
42
43
if (isInboxNotificationFallbackIcon(icon)) {
44
return <Avatar variant="icon">{fallbackIcons[icon]}</Avatar>;
45
}
0 commit comments