cleanup
This commit is contained in:
@@ -47,7 +47,6 @@ export const useRoles = () => {
|
|||||||
return roleNames.every(roleName => hasRole(roleName));
|
return roleNames.every(roleName => hasRole(roleName));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Common role checks based on your existing logic
|
|
||||||
const isMerchant = hasAnyRole(['merchant', 'admin']);
|
const isMerchant = hasAnyRole(['merchant', 'admin']);
|
||||||
const isAdmin = hasRole('admin');
|
const isAdmin = hasRole('admin');
|
||||||
const isCustomer = hasRole('customer');
|
const isCustomer = hasRole('customer');
|
||||||
|
|||||||
Reference in New Issue
Block a user