Remove unnecessary code, refactor, fix bug and add section comment

This commit is contained in:
2023-12-01 11:24:31 +07:00
parent 7c6c33d455
commit 5b0d5671b3
44 changed files with 261 additions and 193 deletions
@@ -3,6 +3,10 @@ import { useContext } from 'react';
// Contexts
import { UserRoomAvailableContext } from '@context/UserRoomAvailableContext';
/**
* The hooks check the place call is in UserRoomAvailableProvider or not
* @returns The context of UserRoomAvailableContext
*/
const useUserRoomAvailable = () => {
const context = useContext(UserRoomAvailableContext);