apps/meteor/client/hooks/useDeviceLogout.tsx
Function useDeviceLogout
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useDeviceLogout = (
sessionId: string,
endpoint: '/v1/sessions/logout' | '/v1/sessions/logout.me',
): ((onReload: () => void) => void) => {
const t = useTranslation();
Function handleLogoutDeviceModal
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(onReload: () => void) => {
const closeModal = (): void => setModal(null);
const handleLogoutDevice = async (): Promise<void> => {
try {