Refactor LayerUI (#1434)

* chore(gitignore): add .idea to gitignore

* refactor(layerui): pass named function to react.memo so that in dev tools the name shows up

This makes debugging easier as well

* refactor(layerui): break the functional component into multiple render methods
This commit is contained in:
Aakansha Doshi 2020-04-18 01:54:19 +05:30 committed by GitHub
parent 9131813661
commit a18342b5b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 221 additions and 199 deletions

View file

@ -114,7 +114,7 @@ import {
TAP_TWICE_TIMEOUT,
} from "../time_constants";
import { LayerUI } from "./LayerUI";
import LayerUI from "./LayerUI";
import { ScrollBars, SceneState } from "../scene/types";
import { generateCollaborationLink, getCollaborationLinkData } from "../data";
import { mutateElement, newElementWith } from "../element/mutateElement";