update manage reward
This commit is contained in:
12
src/pages/master/reward/hooks/useManageRewardContext.tsx
Normal file
12
src/pages/master/reward/hooks/useManageRewardContext.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { useContext } from 'react';
|
||||
import { ManageRewardContext } from './ManageRewardContext';
|
||||
|
||||
const useManageRewardContext = () => {
|
||||
const context = useContext(ManageRewardContext);
|
||||
|
||||
if (!context) throw new Error('useManageRewardContext must be used within AuthProvider');
|
||||
|
||||
return context;
|
||||
};
|
||||
|
||||
export { useManageRewardContext };
|
||||
Reference in New Issue
Block a user