Skip to content

Commit

Permalink
Merge pull request #924 from ambrosus/AMB-5195
Browse files Browse the repository at this point in the history
bugfix: close modal  animation fix
  • Loading branch information
EvgeniyJB authored Dec 31, 2024
2 parents d1c5ed5 + e2e559d commit 719e48b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ export const BottomSheetConfirmRemoveGroup = forwardRef<BottomSheetRef, Props>(
</Text>
<Spacer value={24} />
<Button
onPress={() => {
handleOnDeleteConfirm(groupId);
localRef.current?.dismiss();
}}
onPress={() => handleOnDeleteConfirm(groupId)}
style={styles.removeButton}
>
<Text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ export const GroupItem = memo(
if (timeoutRef.current !== null) {
clearTimeout(timeoutRef.current);
}
timeoutRef.current = setTimeout(() => {
navigation.navigate('Collection', { group });
}, 200);

timeoutRef.current = setTimeout(
() => navigation.navigate('Collection', { group }),
200
);
}, [group, navigation, timeoutRef]);

const handleRemoveConfirm = (groupId: string) => {
onDeleteList(groupId).then();
groupDeleteRef.current?.dismiss();
setTimeout(() => groupDeleteRef.current?.dismiss(), 100);
};

const handleConfirmRemove = useCallback(() => {
Expand Down

0 comments on commit 719e48b

Please sign in to comment.