Skip to content

Commit 99efdd7

Browse files
committed
chore: updated animated layout hook default return
1 parent eb95f3a commit 99efdd7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/bottomSheet/BottomSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
188188
//#endregion
189189

190190
//#region layout variables
191-
const { state: animatedLayoutState } = useAnimatedLayout(
191+
const animatedLayoutState = useAnimatedLayout(
192192
containerLayoutState,
193193
topInset,
194194
bottomInset,

src/hooks/useAnimatedLayout.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,5 @@ export function useAnimatedLayout(
9797
);
9898
//#endregion
9999

100-
return {
101-
state,
102-
};
100+
return state;
103101
}

0 commit comments

Comments
 (0)