TryGhost/Ghost

View on GitHub
apps/admin-x-settings/src/hooks/useStaffUsers.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useStaffUsers has 32 lines of code (exceeds 25 allowed). Consider refactoring.
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();
Severity: Minor
Found in apps/admin-x-settings/src/hooks/useStaffUsers.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status