Skip to content

Commit

Permalink
updating labels for close inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
bwebs committed Dec 11, 2024
1 parent d57d9b3 commit fd49f79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-inbox/src/components/Messages2.0/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,10 @@ const Header: React.FunctionComponent<IHeaderProps> = ({
onClick={() => markAllAsRead()}
/>
) : null}
<CloseInbox onClick={handleCloseInbox} tooltip="Close Inbox" />
<CloseInbox
onClick={handleCloseInbox}
tooltip={labels?.closeInbox ?? "Close Inbox"}
/>
</div>
</Container>
);
Expand Down
2 changes: 2 additions & 0 deletions packages/storybook/stories/inbox/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export const CustomLabels = () => {
markAsUnread: "jk, unread me",
backToInbox: "back it up!",
markAllAsRead: "mark em all captn",
closeInbox: "close me plz",
}} />\n\`\`\``}</ReactMarkdown>
</div>
<CourierProvider
Expand All @@ -218,6 +219,7 @@ export const CustomLabels = () => {
markAsUnread: "jk, unread me",
backToInbox: "back it up!",
markAllAsRead: "mark em all captn",
closeInbox: "close me plz",
}}
/>
</CourierProvider>
Expand Down

0 comments on commit fd49f79

Please sign in to comment.