You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
delint
This commit is contained in:
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React, {useContext, useRef, useState} from 'react';
|
import React, {ReactChildren, ReactNode, useContext, useRef, useState} from 'react';
|
||||||
import {EventType} from 'matrix-js-sdk/src/@types/event';
|
import {EventType} from 'matrix-js-sdk/src/@types/event';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ const MiniAvatarUploader: React.FC<IProps> = ({ hasAvatar, hasAvatarLabel, noAva
|
|||||||
|
|
||||||
const {room} = useContext(RoomContext);
|
const {room} = useContext(RoomContext);
|
||||||
const canSetAvatar = room?.currentState.maySendStateEvent(EventType.RoomAvatar, cli.getUserId());
|
const canSetAvatar = room?.currentState.maySendStateEvent(EventType.RoomAvatar, cli.getUserId());
|
||||||
if (!canSetAvatar) return children;
|
if (!canSetAvatar) return <React.Fragment>{ children }</React.Fragment>;
|
||||||
|
|
||||||
const visible = !!label && (hover || show);
|
const visible = !!label && (hover || show);
|
||||||
return <React.Fragment>
|
return <React.Fragment>
|
||||||
|
|||||||
Reference in New Issue
Block a user