whyuzeim 1.1.93 → 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.
|
@@ -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", {
|
|
@@ -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", {
|
|
@@ -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", {
|
|
@@ -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", {
|