mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: Use arrow function where possible (#3315)
This commit is contained in:
parent
bb568a9670
commit
722e5ca845
14 changed files with 24 additions and 26 deletions
|
@ -161,7 +161,7 @@ const initializeScene = async (opts: {
|
|||
return null;
|
||||
};
|
||||
|
||||
function ExcalidrawWrapper() {
|
||||
const ExcalidrawWrapper = () => {
|
||||
// dimensions
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
@ -347,9 +347,9 @@ function ExcalidrawWrapper() {
|
|||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default function ExcalidrawApp() {
|
||||
const ExcalidrawApp = () => {
|
||||
return (
|
||||
<TopErrorBoundary>
|
||||
<CollabContextConsumer>
|
||||
|
@ -357,4 +357,6 @@ export default function ExcalidrawApp() {
|
|||
</CollabContextConsumer>
|
||||
</TopErrorBoundary>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default ExcalidrawApp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue