Remove flux dependency (#10313)

This commit is contained in:
Michael Telatynski 2023-03-08 14:19:05 +00:00 committed by GitHub
parent 2631b63d13
commit bee4759208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 231 additions and 109 deletions

View file

@ -18,7 +18,6 @@ limitations under the License.
import { Room } from "matrix-js-sdk/src/models/room";
import classNames from "classnames";
import { Dispatcher } from "flux";
import { Enable, Resizable } from "re-resizable";
import { Direction } from "re-resizable/lib/resizer";
import * as React from "react";
@ -28,7 +27,7 @@ import { polyfillTouchEvent } from "../../../@types/polyfill";
import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts";
import { RovingAccessibleButton, RovingTabIndexWrapper } from "../../../accessibility/RovingTabIndex";
import { Action } from "../../../dispatcher/actions";
import defaultDispatcher from "../../../dispatcher/dispatcher";
import defaultDispatcher, { MatrixDispatcher } from "../../../dispatcher/dispatcher";
import { ActionPayload } from "../../../dispatcher/payloads";
import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload";
import { getKeyBindingsManager } from "../../../KeyBindingsManager";
@ -68,7 +67,7 @@ polyfillTouchEvent();
export interface IAuxButtonProps {
tabIndex: number;
dispatcher?: Dispatcher<ActionPayload>;
dispatcher?: MatrixDispatcher;
}
interface IProps {