Browse Source

style: run prettier

Konstantinos Kaloutas 2 years ago
parent
commit
0760aeb948

+ 1 - 1
tldraw/apps/tldraw-logseq/src/app.tsx

@@ -101,7 +101,7 @@ const AppInner = ({
 
   const onPersistOnDiff: TLReactCallbacks<Shape>['onPersist'] = React.useCallback(
     (app, info) => {
-       onPersist?.(app, info)
+      onPersist?.(app, info)
     },
     [model]
   )

+ 1 - 1
tldraw/apps/tldraw-logseq/src/hooks/useCopy.ts

@@ -5,7 +5,7 @@ import { LogseqContext } from '../lib/logseq-context'
 export function useCopy() {
   const { handlers } = React.useContext(LogseqContext)
 
-  return React.useCallback<TLReactCallbacks['onCopy']>((app, {text, html}) => {
+  return React.useCallback<TLReactCallbacks['onCopy']>((app, { text, html }) => {
     handlers.copyToClipboard(text, html)
   }, [])
 }

+ 1 - 1
tldraw/apps/tldraw-logseq/src/lib/logseq-context.ts

@@ -55,7 +55,7 @@ export interface LogseqContextValue {
     makeAssetUrl: (relativeUrl: string) => string
     sidebarAddBlock: (uuid: string, type: 'block' | 'page') => void
     redirectToPage: (uuidOrPageName: string) => void
-    copyToClipboard: (text:string, html: string) => void
+    copyToClipboard: (text: string, html: string) => void
   }
 }
 

+ 2 - 2
tldraw/packages/core/src/lib/TLApp/TLApp.ts

@@ -192,7 +192,7 @@ export class TLApp<
         fn: () => {
           this.api.toggleGrid()
         },
-      }
+      },
     ]
     // eslint-disable-next-line @typescript-eslint/ban-ts-comment
     // @ts-ignore
@@ -562,7 +562,7 @@ export class TLApp<
 
       this.notify('copy', {
         text: shapeBlockRefs,
-        html: tldrawString
+        html: tldrawString,
       })
     }
   }

+ 1 - 1
tldraw/packages/core/src/types/types.ts

@@ -193,7 +193,7 @@ export type TLSubscriptionEvent =
       event: 'drop'
       info: { dataTransfer: DataTransfer; point: number[] }
     }
-    | {
+  | {
       event: 'copy'
       info: TLCopyEventInfo
     }