Feature style (#627)

* initial

* style: style and remove Svg export

* tiny up

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
chlbri 2022-03-24 09:05:35 +00:00 committed by GitHub
parent 8aa54f4d8c
commit 4d5a929366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 79 additions and 81 deletions

View file

@ -1,8 +1,8 @@
import React from 'react'
import * as gtag from 'utils/gtag'
import { Tldraw, TldrawApp, TldrawProps, useFileSystem } from '@tldraw/tldraw'
import { useAccountHandlers } from 'hooks/useAccountHandlers'
import React, { FC } from 'react'
import { exportToImage } from 'utils/export'
import * as gtag from 'utils/gtag'
declare const window: Window & { app: TldrawApp }
@ -12,12 +12,12 @@ interface EditorProps {
isSponsor?: boolean
}
export default function Editor({
const Editor: FC<EditorProps & Partial<TldrawProps>> = ({
id = 'home',
isUser = false,
isSponsor = false,
...rest
}: EditorProps & Partial<TldrawProps>) {
}) => {
const handleMount = React.useCallback((app: TldrawApp) => {
window.app = app
}, [])
@ -53,3 +53,5 @@ export default function Editor({
</div>
)
}
export default Editor