mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-13 00:16:17 +02:00
cleanup
This commit is contained in:
parent
7d92f0c332
commit
1fde8bf6bc
@ -7,11 +7,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
|
||||
Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import React, { type JSX } from "react";
|
||||
import { type Room } from "matrix-js-sdk/src/matrix";
|
||||
import { RestartIcon, WarningIcon, DeleteIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||
|
||||
import { _t, _td } from "../../languageHandler";
|
||||
import { _t } from "../../languageHandler";
|
||||
import { StaticNotificationState } from "../../stores/notifications/StaticNotificationState";
|
||||
import AccessibleButton from "../views/elements/AccessibleButton";
|
||||
import InlineSpinner from "../views/elements/InlineSpinner";
|
||||
@ -23,7 +23,7 @@ interface IProps {
|
||||
room: Room;
|
||||
}
|
||||
|
||||
export function RoomStatusBar(props: IProps) {
|
||||
export function RoomStatusBar(props: IProps): JSX.Element|null {
|
||||
const vm = useRoomStatusBarViewModel(props);
|
||||
if (!vm.visible) {
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user