Skip to content

Commit 86de086

Browse files
committed
Docs fix
1 parent b690370 commit 86de086

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

src/components/stories/00-docs/03-UsefulEvents.stories.mdx

+6-21
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,11 @@ Triggered when a mouse/touch resize starts. The resize action can be cancelled b
2222
#### Example
2323

2424
```tsx
25-
const Example = () => {
26-
const shouldResize = // logic to determine if resizing should be possible
27-
28-
return (
29-
<LeftResizable
30-
onResizeStart={
31-
(resizeType) => shouldResize}>
32-
...
33-
</LeftResizable>
34-
)
35-
}
25+
const Example = () =>
26+
<LeftResizable
27+
onResizeStart={(resizeType) => /* logic to determine if resizing should be possible */}>
28+
...
29+
</LeftResizable>
3630
```
3731

3832
### onResizeEnd
@@ -63,16 +57,7 @@ const Example = () => {
6357
return (
6458
<ViewPort>
6559
<LeftResizable
66-
onResizeEnd={
67-
(
68-
newSize: number,
69-
domRect: DOMRect,
70-
resizeType:
71-
"resize-left" |
72-
"resize-top" |
73-
"resize-right" |
74-
"resize-bottom"
75-
) => setSize(newSize)}>
60+
onResizeEnd={(newSize, domRect, resizeType) => setSize(newSize)}>
7661
...
7762
</LeftResizable>
7863
</ViewPort>

0 commit comments

Comments
 (0)