Apply prettier formatting

This commit is contained in:
Michael Weimann 2022-12-12 12:24:14 +01:00
parent 1cac306093
commit 526645c791
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
1576 changed files with 65385 additions and 62478 deletions

View file

@ -14,12 +14,12 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import React, { FunctionComponent, useEffect, useRef } from 'react';
import React, { FunctionComponent, useEffect, useRef } from "react";
import { logger } from "matrix-js-sdk/src/logger";
import dis from '../../../dispatcher/dispatcher';
import ICanvasEffect from '../../../effects/ICanvasEffect';
import { CHAT_EFFECTS } from '../../../effects';
import dis from "../../../dispatcher/dispatcher";
import ICanvasEffect from "../../../effects/ICanvasEffect";
import { CHAT_EFFECTS } from "../../../effects";
import UIStore, { UI_EVENTS } from "../../../stores/UIStore";
interface IProps {
@ -53,7 +53,7 @@ const EffectsOverlay: FunctionComponent<IProps> = ({ roomWidth }) => {
}
};
const onAction = (payload: { action: string }) => {
const actionPrefix = 'effects.';
const actionPrefix = "effects.";
if (payload.action.indexOf(actionPrefix) === 0) {
const effect = payload.action.slice(actionPrefix.length);
lazyLoadEffectModule(effect).then((module) => module?.start(canvasRef.current));
@ -83,10 +83,10 @@ const EffectsOverlay: FunctionComponent<IProps> = ({ roomWidth }) => {
ref={canvasRef}
width={roomWidth}
style={{
display: 'block',
display: "block",
zIndex: 999999,
pointerEvents: 'none',
position: 'fixed',
pointerEvents: "none",
position: "fixed",
top: 0,
right: 0,
}}