apps/meteor/client/views/admin/users/hooks/useConfirmOwnerChanges.tsx
Function useConfirmOwnerChanges
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useConfirmOwnerChanges = (): ((
action: (confirm?: boolean) => Promise<void>,
modalProps: Pick<ComponentProps<typeof ConfirmOwnerChangeWarningModal>, 'contentTitle' | 'confirmText'>,
onChange: () => void,
) => Promise<void>) => {