mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
delint
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
93429d7c2e
commit
7e4d429fa3
1 changed files with 103 additions and 99 deletions
|
@ -532,7 +532,8 @@ const BanToggleButton = withLegacyMatrixClient(({matrixClient: cli, member, star
|
||||||
</AccessibleButton>;
|
</AccessibleButton>;
|
||||||
});
|
});
|
||||||
|
|
||||||
const MuteToggleButton = withLegacyMatrixClient(({matrixClient: cli, member, room, powerLevels, startUpdating, stopUpdating}) => {
|
const MuteToggleButton = withLegacyMatrixClient(
|
||||||
|
({matrixClient: cli, member, room, powerLevels, startUpdating, stopUpdating}) => {
|
||||||
const isMuted = _isMuted(member, powerLevels);
|
const isMuted = _isMuted(member, powerLevels);
|
||||||
const onMuteToggle = async () => {
|
const onMuteToggle = async () => {
|
||||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
|
@ -587,9 +588,11 @@ const MuteToggleButton = withLegacyMatrixClient(({matrixClient: cli, member, roo
|
||||||
return <AccessibleButton className="mx_UserInfo_field" onClick={onMuteToggle}>
|
return <AccessibleButton className="mx_UserInfo_field" onClick={onMuteToggle}>
|
||||||
{ muteLabel }
|
{ muteLabel }
|
||||||
</AccessibleButton>;
|
</AccessibleButton>;
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const RoomAdminToolsContainer = withLegacyMatrixClient(({matrixClient: cli, room, children, member, startUpdating, stopUpdating}) => {
|
const RoomAdminToolsContainer = withLegacyMatrixClient(
|
||||||
|
({matrixClient: cli, room, children, member, startUpdating, stopUpdating}) => {
|
||||||
let kickButton;
|
let kickButton;
|
||||||
let banButton;
|
let banButton;
|
||||||
let muteButton;
|
let muteButton;
|
||||||
|
@ -639,7 +642,8 @@ const RoomAdminToolsContainer = withLegacyMatrixClient(({matrixClient: cli, room
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div />;
|
return <div />;
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const GroupAdminToolsSection = withLegacyMatrixClient(
|
const GroupAdminToolsSection = withLegacyMatrixClient(
|
||||||
({matrixClient: cli, children, groupId, groupMember, startUpdating, stopUpdating}) => {
|
({matrixClient: cli, children, groupId, groupMember, startUpdating, stopUpdating}) => {
|
||||||
|
|
Loading…
Reference in a new issue