update manage reward

This commit is contained in:
Raja Oktafrianto
2025-04-08 11:15:34 +07:00
parent 758329ec2e
commit ecff71247c
14 changed files with 837 additions and 7 deletions

View 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 };