Skip to content

Commit f4c1c92

Browse files
authored
fix #90 make control and placement optional (#90)
* fix: make props properties optional * fix: remove placement fallback from DevTool component
1 parent 01d9827 commit f4c1c92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/devTool.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ if (typeof window !== 'undefined') {
2020
}
2121

2222
export const DevTool = (props?: {
23-
control: Control<any>;
24-
placement: PLACEMENT;
23+
control?: Control<any>;
24+
placement?: PLACEMENT;
2525
}) => {
2626
const methods = useFormContext();
2727

2828
return (
2929
<StateMachineProvider>
3030
<DevToolUI
3131
control={(props && props.control) || methods.control}
32-
placement={props?.placement ?? 'top-left'}
32+
placement={props?.placement}
3333
/>
3434
</StateMachineProvider>
3535
);

0 commit comments

Comments
 (0)