File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { loadFromBlob } from "../data/blob";
1414import { ExcalidrawElement , FileId } from "../element/types" ;
1515import { useCallbackRefState } from "../hooks/useCallbackRefState" ;
1616import { Language , t } from "../i18n" ;
17- import Excalidraw , { defaultLang } from "../packages/excalidraw/index" ;
17+ import { Excalidraw , defaultLang } from "../packages/excalidraw/index" ;
1818import {
1919 AppState ,
2020 LibraryItems ,
Original file line number Diff line number Diff line change 1- import Excalidraw from "./index" ;
2-
31import "../../../public/fonts.css" ;
42
5- export { Excalidraw } ;
63export * from "./index" ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { DEFAULT_UI_OPTIONS } from "../../constants";
1313import { Provider } from "jotai" ;
1414import { jotaiScope , jotaiStore } from "../../jotai" ;
1515
16- const Excalidraw = ( props : ExcalidrawProps ) => {
16+ const ExcalidrawBase = ( props : ExcalidrawProps ) => {
1717 const {
1818 onHomeButtonClick,
1919 onChange,
@@ -191,9 +191,9 @@ const areEqual = (
191191const forwardedRefComp = forwardRef <
192192 ExcalidrawAPIRefValue ,
193193 PublicExcalidrawProps
194- > ( ( props , ref ) => < Excalidraw { ...props } excalidrawRef = { ref } /> ) ;
194+ > ( ( props , ref ) => < ExcalidrawBase { ...props } excalidrawRef = { ref } /> ) ;
195195
196- export default React . memo ( forwardedRefComp , areEqual ) ;
196+ export const Excalidraw = React . memo ( forwardedRefComp , areEqual ) ;
197197
198198export {
199199 getSceneVersion ,
You can’t perform that action at this time.
0 commit comments