tycho-components 0.21.17 → 0.21.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ export const CommentsTexts = {
27
27
  'notification.unread': 'Unread',
28
28
  'notification.all': 'Read',
29
29
  'notification.empty': 'No more notifications',
30
- 'notification.text': '{{user}} added a comment to entry {{entry}}.',
30
+ 'notification.text': '{{user}} added a new comment.',
31
31
  'label.edited': 'edited',
32
32
  },
33
33
  'pt-BR': {
@@ -58,7 +58,7 @@ export const CommentsTexts = {
58
58
  'notification.unread': 'Não lidas',
59
59
  'notification.all': 'Lidas',
60
60
  'notification.empty': 'Não há notificações',
61
- 'notification.text': '{{user}} adicionou um comentário na entrada {{entry}}.',
61
+ 'notification.text': '{{user}} adicionou um novo comentário.',
62
62
  'label.edited': 'editado',
63
63
  },
64
64
  it: {
@@ -36,6 +36,5 @@ export default function HeaderNotifications({ uid, mode, mobile }) {
36
36
  return (_jsxs("div", { className: "ds-dropdown-container notifications-container", children: [_jsx(IconButton, { name: "notifications_active", className: comments && comments.length > 0 ? 'shake' : '', size: "medium", onClick: () => setOpen(!open), mode: mobile ? 'outlined' : 'filled' }), open && (_jsx("div", { className: "ds-dropdown-list", children: _jsxs("div", { className: "notifications-panel", children: [_jsxs("div", { className: "header", children: [_jsx("span", { children: t('notification.title') }), _jsx(IconButton, { name: "close", size: "large", mode: "ghost", onClick: () => setOpen(false) })] }), _jsxs("div", { className: "tabs", children: [_jsxs("button", { className: tab === 'unread' ? 'active-tab' : '', onClick: () => setTab('unread'), children: [t('notification.unread'), " (", comments?.length || 0, ")"] }), _jsx("button", { className: tab === 'read' ? 'active-tab' : '', onClick: () => setTab('read'), children: t('notification.all') })] }), _jsxs("div", { className: "content", children: [notifications &&
37
37
  notifications.map((not, idx) => (_jsxs("div", { className: "item", onClick: () => handleOpen(not), children: [_jsx(Avatar, { src: not.picture, size: "small" }), _jsxs("div", { className: "message", children: [_jsx("span", { className: "text", children: _jsx(Trans, { t: t, i18nKey: "notification.text", values: {
38
38
  user: not.name,
39
- entry: not.keywords ? not.keywords['entry'] : '',
40
39
  } }) }), _jsx("span", { className: "date", children: DateUtils.formatDateTime(not.edited ? not.edited : not.date, 'MM/dd/yyyy - HH:mm') })] })] }, idx.valueOf()))), notifications && notifications.length === 0 && (_jsx("div", { className: "empty-notifications", children: t('notification.empty') }))] })] }) }))] }));
41
40
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.21.17",
4
+ "version": "0.21.18",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {