apps/admin-x-settings/src/hooks/useStaffUsers.tsx
Function useStaffUsers
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useStaffUsers = (): UsersHook => {
const {currentUser} = useGlobalData();
const {data: {users, meta, isEnd} = {users: []}, isLoading: usersLoading, fetchNextPage} = useBrowseUsers();
const {data: {invites} = {invites: []}, isLoading: invitesLoading} = useBrowseInvites();
const {data: {roles} = {}, isLoading: rolesLoading} = useBrowseRoles();