Fix ExplodedExample.tsx (#2068)

Previous implementation was incorrect, causing the following bug:


![image](https://github.com/tldraw/tldraw/assets/26308297/03f2a996-dd58-4864-8f89-8e7af2ecca69)


### Change Type

- [] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [x] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
pull/2072/head
antonio moura 2023-10-13 02:28:59 -06:00 zatwierdzone przez GitHub
rodzic 8f1850785e
commit 981ef61810
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3,6 +3,7 @@ import {
ContextMenu,
TldrawEditor,
TldrawUi,
defaultShapeTools,
defaultShapeUtils,
defaultTools,
} from '@tldraw/tldraw'
@ -14,7 +15,7 @@ export default function ExplodedExample() {
<TldrawEditor
initialState="select"
shapeUtils={defaultShapeUtils}
tools={defaultTools}
tools={[...defaultTools, ...defaultShapeTools]}
persistenceKey="exploded-example"
>
<TldrawUi>