forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(js): Fix checkmark for selected value and localize text (novuhq#6104
- Loading branch information
Showing
8 changed files
with
72 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -774,5 +774,6 @@ | |
"pnpm-lock.yaml", | ||
"apps/web/env.sh", | ||
"packages/js/src/ui/index.directcss", | ||
"unreadRead" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 8 additions & 18 deletions
26
...onents/elements/Header/StatusDropdown.tsx → ...ments/InboxStatus/InboxStatusDropdown.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 37 additions & 29 deletions
66
...ponents/elements/Header/StatusOptions.tsx → ...ements/InboxStatus/InboxStatusOptions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/js/src/ui/components/elements/InboxStatus/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { LocalizationKey } from '../../../context'; | ||
import { NotificationStatus } from '../../../types'; | ||
|
||
export const notificationStatusOptionsLocalizationKeys = { | ||
unreadRead: 'inbox.status.options.unreadRead', | ||
unread: 'inbox.status.options.unread', | ||
archived: 'inbox.status.options.archived', | ||
} as const satisfies Record<NotificationStatus, LocalizationKey>; | ||
|
||
export const inboxStatusLocalizationKeys = { | ||
unreadRead: 'inbox.status.unreadRead', | ||
unread: 'inbox.status.unread', | ||
archived: 'inbox.status.archived', | ||
} as const satisfies Record<NotificationStatus, LocalizationKey>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
export const defaultLocalization = { | ||
'inbox.title': 'Inbox', | ||
'notifications.emptyNotice': 'No notifications', | ||
}; | ||
'inbox.status.options.unread': 'Unread only', | ||
'inbox.status.options.unreadRead': 'Unread & read', | ||
'inbox.status.options.archived': 'Archived', | ||
'inbox.status.unread': 'Unread', | ||
'inbox.status.unreadRead': 'Inbox', | ||
'inbox.status.archived': 'Archived', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters