Skip to content

Commit

Permalink
Fix typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Nov 14, 2024
1 parent d17df4f commit 04fb3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function BudgetSummaries({ SummaryComponent }: BudgetSummariesProps) {
config: { mass: 3, tension: 600, friction: 80 },
}));

const containerRef = useResizeObserver(
const containerRef = useResizeObserver<HTMLDivElement>(
useCallback(rect => {
setWidthState(rect.width);
}, []),
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function Sidebar() {
dispatch(replaceModal('add-account'));
};

const containerRef = useResizeObserver(rect => {
const containerRef = useResizeObserver<HTMLDivElement>(rect => {
setSidebarWidth(rect.width);
});

Expand Down

0 comments on commit 04fb3fc

Please sign in to comment.