mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Update test case, fix comments
This commit is contained in:
@@ -6,6 +6,8 @@ import { setIsDeleteRoom as setIsDeleteRoomFn } from '@service/roomServices';
|
||||
|
||||
// Constants
|
||||
import * as messages from '@constant/messages';
|
||||
|
||||
// Hooks
|
||||
import { useUserRoomAvailable } from '@hook/useUserRoomAvailable';
|
||||
|
||||
/**
|
||||
@@ -33,7 +35,11 @@ const useSetIsDeleteRoom = () => {
|
||||
onError: (err) => toast.error(err.message),
|
||||
});
|
||||
|
||||
return { isDeleting, setIsDeleteRoom, isSuccess };
|
||||
return {
|
||||
isDeleting,
|
||||
setIsDeleteRoom,
|
||||
isSuccess
|
||||
};
|
||||
};
|
||||
|
||||
export { useSetIsDeleteRoom };
|
||||
|
||||
Reference in New Issue
Block a user