mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Remove unnecessary code, refactor, fix bug and add section comment
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user