Skip to content

Commit f9a3239

Browse files
committed
fix: onMount type issue
1 parent fc93608 commit f9a3239

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app-layout/drawer/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface DesktopDrawerProps {
1414
toggleRefs: {
1515
toggle: React.Ref<{ focus(): void }>;
1616
close: React.Ref<{ focus(): void }>;
17-
onMount: () => void;
17+
onMount?: () => void;
1818
};
1919
width: number;
2020
topOffset: number | undefined;

src/app-layout/utils/use-focus-control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface FocusControlRefs {
1212
toggle: RefObject<Focusable>;
1313
close: RefObject<Focusable>;
1414
slider: RefObject<HTMLDivElement>;
15-
onMount?: (node: HTMLDivElement) => void;
15+
onMount?: () => void;
1616
focusPromise?: any;
1717
}
1818

0 commit comments

Comments
 (0)