Codemod
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a9a3751f3e
commit
c299d2a0d1
281 changed files with 458 additions and 377 deletions
|
@ -251,7 +251,7 @@ interface LocalRoomViewProps {
|
|||
localRoom: LocalRoom;
|
||||
resizeNotifier: ResizeNotifier;
|
||||
permalinkCreator: RoomPermalinkCreator;
|
||||
roomView: RefObject<HTMLElement>;
|
||||
roomView: RefObject<HTMLElement | null>;
|
||||
onFileDrop: (dataTransfer: DataTransfer) => Promise<void>;
|
||||
mainSplitContentType: MainSplitContentType;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ interface LocalRoomViewProps {
|
|||
* @param {LocalRoomViewProps} props Room view props
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
function LocalRoomView(props: LocalRoomViewProps): ReactElement {
|
||||
function LocalRoomView(props: LocalRoomViewProps): ReactElement<any> {
|
||||
const context = useScopedRoomContext("room");
|
||||
const room = context.room as LocalRoom;
|
||||
const encryptionEvent = props.localRoom.currentState.getStateEvents(EventType.RoomEncryption)[0];
|
||||
|
@ -280,8 +280,8 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
|
|||
});
|
||||
};
|
||||
|
||||
let statusBar: ReactElement | null = null;
|
||||
let composer: ReactElement | null = null;
|
||||
let statusBar: ReactElement<any> | null = null;
|
||||
let composer: ReactElement<any> | null = null;
|
||||
|
||||
if (room.isError) {
|
||||
const buttons = (
|
||||
|
@ -340,7 +340,7 @@ interface ILocalRoomCreateLoaderProps {
|
|||
* @param {ILocalRoomCreateLoaderProps} props Room view props
|
||||
* @return {ReactElement}
|
||||
*/
|
||||
function LocalRoomCreateLoader(props: ILocalRoomCreateLoaderProps): ReactElement {
|
||||
function LocalRoomCreateLoader(props: ILocalRoomCreateLoaderProps): ReactElement<any> {
|
||||
const text = _t("room|creating_room_text", { names: props.names });
|
||||
return (
|
||||
<div className="mx_RoomView mx_RoomView--local">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue