decentraland-ui2 0.44.1 → 0.44.2-19901709627.commit-fe73e71
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.
- package/dist/components/Notifications/NotificationTypes/Transfer/GiftNotification.i18n.js +3 -3
- package/dist/components/Notifications/NotificationTypes/Transfer/GiftNotification.i18n.js.map +1 -1
- package/dist/components/Notifications/NotificationTypes/Transfer/GiftNotification.js +2 -2
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const i18n = {
|
|
2
2
|
en: {
|
|
3
3
|
description: "Open your backpack to check it out.",
|
|
4
|
-
title: "{
|
|
4
|
+
title: "{player} sent you something",
|
|
5
5
|
},
|
|
6
6
|
es: {
|
|
7
7
|
description: "Abre tu mochila para verlo.",
|
|
8
|
-
title: "{
|
|
8
|
+
title: "{player} te envió algo",
|
|
9
9
|
},
|
|
10
10
|
zh: {
|
|
11
11
|
description: "打开你的背包查看。",
|
|
12
|
-
title: "{
|
|
12
|
+
title: "{player} 给你送了东西",
|
|
13
13
|
},
|
|
14
14
|
};
|
|
15
15
|
export { i18n };
|
package/dist/components/Notifications/NotificationTypes/Transfer/GiftNotification.i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiftNotification.i18n.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Transfer/GiftNotification.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE;QACF,WAAW,EAAE,qCAAqC;QAClD,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GiftNotification.i18n.js","sourceRoot":"","sources":["../../../../../src/components/Notifications/NotificationTypes/Transfer/GiftNotification.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE;QACF,WAAW,EAAE,qCAAqC;QAClD,KAAK,EAAE,6BAA6B;KACrC;IACD,EAAE,EAAE;QACF,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE,wBAAwB;KAChC;IACD,EAAE,EAAE;QACF,WAAW,EAAE,WAAW;QACxB,KAAK,EAAE,iBAAiB;KACzB;CACF,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -7,9 +7,9 @@ import { NotificationItemDescription, NotificationItemTitle, } from "../../Notif
|
|
|
7
7
|
import { replaceWithValues } from "../../utils";
|
|
8
8
|
const GiftNotification = React.memo((props) => {
|
|
9
9
|
const { notification, locale, renderProfile } = props;
|
|
10
|
-
const
|
|
10
|
+
const player = renderProfile?.(notification.metadata.senderAddress) ??
|
|
11
11
|
notification.metadata.senderAddress;
|
|
12
|
-
return (_jsxs(NotificationItem, { image: _jsx(GiftIcon, { width: 48, height: 48 }), timestamp: notification.timestamp, isNew: !notification.read, locale: locale, children: [_jsx(NotificationItemTitle, { children: replaceWithValues(i18n[locale].title, {
|
|
12
|
+
return (_jsxs(NotificationItem, { image: _jsx(GiftIcon, { width: 48, height: 48 }), timestamp: notification.timestamp, isNew: !notification.read, locale: locale, children: [_jsx(NotificationItemTitle, { children: replaceWithValues(i18n[locale].title, { player }) }), _jsx(NotificationItemDescription, { color: "inherit", underline: "none", children: i18n[locale].description })] }));
|
|
13
13
|
});
|
|
14
14
|
export { GiftNotification };
|
|
15
15
|
//# sourceMappingURL=GiftNotification.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decentraland-ui2",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.2-19901709627.commit-fe73e71",
|
|
4
4
|
"description": "Decentraland's UI components and styles",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"homepage": "https://github.com/decentraland/ui2#readme",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@contentful/rich-text-react-renderer": "^16.0.1",
|
|
41
|
+
"@dcl/schemas": "^20.2.1",
|
|
41
42
|
"@dcl/hooks": "^0.3.0",
|
|
42
|
-
"@dcl/schemas": "^20.2.0",
|
|
43
43
|
"@dcl/ui-env": "^1.5.1",
|
|
44
44
|
"@emotion/react": "^11.11.4",
|
|
45
45
|
"@emotion/styled": "^11.11.5",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"files": [
|
|
101
101
|
"dist"
|
|
102
102
|
],
|
|
103
|
-
"commit": "
|
|
103
|
+
"commit": "fe73e7138d85d6718844de81676d7f66b6a32e78"
|
|
104
104
|
}
|