Adding Feedback Member on Members Module
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
import { useContext } from 'react';
|
||||
import { ManageFeedbackMemberContext } from './ManageFeedbackMemberContext';
|
||||
|
||||
const useManageProviderContext = () => {
|
||||
const context = useContext(ManageFeedbackMemberContext);
|
||||
|
||||
if (!context) throw new Error('useManageProviderContext must be used within AuthProvider');
|
||||
|
||||
return context;
|
||||
};
|
||||
|
||||
export { useManageProviderContext };
|
||||
Reference in New Issue
Block a user