whyuzeim 1.1.94 → 1.1.95
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.
|
@@ -13,6 +13,7 @@ var agoraChatUikit = require('agora-chat-uikit');
|
|
|
13
13
|
var muted = require('./image/muted.svg.js');
|
|
14
14
|
var logout = require('./image/logout.svg.js');
|
|
15
15
|
var _delete = require('./image/delete.svg.js');
|
|
16
|
+
var LocaleContext = require('../../../contexts/LocaleContext.js');
|
|
16
17
|
require('./style/index.scss');
|
|
17
18
|
|
|
18
19
|
var OperateBtn = function OperateBtn(props) {
|
|
@@ -32,6 +33,8 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
32
33
|
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
33
34
|
modal = _Modal$useModal2[0],
|
|
34
35
|
contextHolder = _Modal$useModal2[1];
|
|
36
|
+
var _useTranslation = LocaleContext.useTranslation(),
|
|
37
|
+
t = _useTranslation.t;
|
|
35
38
|
var handleTooltip = React.useCallback(function (event) {
|
|
36
39
|
try {
|
|
37
40
|
var _context;
|
|
@@ -210,7 +213,7 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
210
213
|
className: "yuze-conversationItem-action-img"
|
|
211
214
|
}), /*#__PURE__*/React.createElement("span", {
|
|
212
215
|
className: "text-sm"
|
|
213
|
-
}, silent ?
|
|
216
|
+
}, silent ? t('actions.unmute') : t('actions.mute'))), chatType === "groupChat" && /*#__PURE__*/React.createElement("div", {
|
|
214
217
|
className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
|
|
215
218
|
onClick: handleConfirmLeave
|
|
216
219
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -11,6 +11,7 @@ import { useConversationContext, rootStore } from 'agora-chat-uikit';
|
|
|
11
11
|
import img from './image/muted.svg.js';
|
|
12
12
|
import img$1 from './image/logout.svg.js';
|
|
13
13
|
import img$2 from './image/delete.svg.js';
|
|
14
|
+
import { useTranslation } from '../../../contexts/LocaleContext.js';
|
|
14
15
|
import './style/index.scss';
|
|
15
16
|
|
|
16
17
|
var OperateBtn = function OperateBtn(props) {
|
|
@@ -30,6 +31,8 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
30
31
|
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
31
32
|
modal = _Modal$useModal2[0],
|
|
32
33
|
contextHolder = _Modal$useModal2[1];
|
|
34
|
+
var _useTranslation = useTranslation(),
|
|
35
|
+
t = _useTranslation.t;
|
|
33
36
|
var handleTooltip = useCallback(function (event) {
|
|
34
37
|
try {
|
|
35
38
|
var _context;
|
|
@@ -208,7 +211,7 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
208
211
|
className: "yuze-conversationItem-action-img"
|
|
209
212
|
}), /*#__PURE__*/React.createElement("span", {
|
|
210
213
|
className: "text-sm"
|
|
211
|
-
}, silent ?
|
|
214
|
+
}, silent ? t('actions.unmute') : t('actions.mute'))), chatType === "groupChat" && /*#__PURE__*/React.createElement("div", {
|
|
212
215
|
className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
|
|
213
216
|
onClick: handleConfirmLeave
|
|
214
217
|
}, /*#__PURE__*/React.createElement("img", {
|