whyuzeim 1.1.93 → 1.1.94
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.
|
@@ -12,6 +12,7 @@ var agoraChatUikit = require('agora-chat-uikit');
|
|
|
12
12
|
var muted = require('./image/muted.svg.js');
|
|
13
13
|
var logout = require('./image/logout.svg.js');
|
|
14
14
|
var _delete = require('./image/delete.svg.js');
|
|
15
|
+
var LocaleContext = require('../../../contexts/LocaleContext.js');
|
|
15
16
|
require('./style/index.scss');
|
|
16
17
|
|
|
17
18
|
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 = LocaleContext.useTranslation(),
|
|
35
|
+
t = _useTranslation.t;
|
|
33
36
|
var handleMuted = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
34
37
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
35
38
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -178,7 +181,7 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
178
181
|
className: "yuze-conversationItem-action-img"
|
|
179
182
|
}), /*#__PURE__*/React.createElement("span", {
|
|
180
183
|
className: "text-sm"
|
|
181
|
-
}, silent ?
|
|
184
|
+
}, silent ? t('actions.unmute') : t('actions.mute'))), chatType === "groupChat" && /*#__PURE__*/React.createElement("div", {
|
|
182
185
|
className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
|
|
183
186
|
onClick: handleConfirmLeave
|
|
184
187
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -10,6 +10,7 @@ import { useConversationContext, rootStore } from 'agora-chat-uikit';
|
|
|
10
10
|
import img from './image/muted.svg.js';
|
|
11
11
|
import img$1 from './image/logout.svg.js';
|
|
12
12
|
import img$2 from './image/delete.svg.js';
|
|
13
|
+
import { useTranslation } from '../../../contexts/LocaleContext.js';
|
|
13
14
|
import './style/index.scss';
|
|
14
15
|
|
|
15
16
|
var OperateBtn = function OperateBtn(props) {
|
|
@@ -28,6 +29,8 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
28
29
|
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
29
30
|
modal = _Modal$useModal2[0],
|
|
30
31
|
contextHolder = _Modal$useModal2[1];
|
|
32
|
+
var _useTranslation = useTranslation(),
|
|
33
|
+
t = _useTranslation.t;
|
|
31
34
|
var handleMuted = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
32
35
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
33
36
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -176,7 +179,7 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
176
179
|
className: "yuze-conversationItem-action-img"
|
|
177
180
|
}), /*#__PURE__*/React.createElement("span", {
|
|
178
181
|
className: "text-sm"
|
|
179
|
-
}, silent ?
|
|
182
|
+
}, silent ? t('actions.unmute') : t('actions.mute'))), chatType === "groupChat" && /*#__PURE__*/React.createElement("div", {
|
|
180
183
|
className: "yuze-conversationList-header-right-tooltip-item flex flex-row items-center gap-3 cursor-pointer",
|
|
181
184
|
onClick: handleConfirmLeave
|
|
182
185
|
}, /*#__PURE__*/React.createElement("img", {
|