Refactor: convert initializeApp to func component and use JSX transform in the codebase (#4056)

This commit is contained in:
Aakansha Doshi 2021-10-14 22:56:51 +05:30 committed by GitHub
parent 463857ad9a
commit ff29780760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 20 additions and 70 deletions

View file

@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { debounce, getVersion, nFormatter } from "../utils";
import {
getElementsStorageSize,

View file

@ -1,5 +1,5 @@
import throttle from "lodash.throttle";
import React, { PureComponent } from "react";
import { PureComponent } from "react";
import { ExcalidrawImperativeAPI } from "../../types";
import { ErrorDialog } from "../../components/ErrorDialog";
import { APP_NAME, ENV, EVENT } from "../../constants";

View file

@ -1,11 +1,5 @@
import LanguageDetector from "i18next-browser-languagedetector";
import React, {
useCallback,
useContext,
useEffect,
useRef,
useState,
} from "react";
import { useCallback, useContext, useEffect, useRef, useState } from "react";
import { trackEvent } from "../analytics";
import { getDefaultAppState } from "../appState";
import { ErrorDialog } from "../components/ErrorDialog";