Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
Checks / checks (push) Successful in 2m11s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 04:23:53 +11:00
parent 3cd159a63e
commit a6ad8651b3
605 changed files with 11480 additions and 9125 deletions
@@ -1,7 +1,7 @@
import React, { useCallback, useState } from 'react';
import { openExternalUrl } from '../../../utils/tauri';
import { Box, Button, config, Menu, Spinner, Text } from 'folds';
import { AuthDict, IMyDevice, MatrixError } from 'matrix-js-sdk';
import { openExternalUrl } from '../../../utils/tauri';
import { SequenceCard } from '../../../components/sequence-card';
import { SequenceCardStyle } from '../styles.css';
import { ActionUIA, ActionUIAFlowsLoader } from '../../../components/ActionUIA';
@@ -37,7 +37,7 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O
openExternalUrl(
withSearchParam(authUrl, {
action: accountManagementActions.sessionsList,
})
}),
);
}, [authMetadata, accountManagementActions]);
@@ -50,10 +50,10 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O
withSearchParam(authUrl, {
action: accountManagementActions.sessionEnd,
device_id: deviceId,
})
}),
);
},
[authMetadata, accountManagementActions]
[authMetadata, accountManagementActions],
);
const handleToggleDelete = useCallback((deviceId: string) => {
@@ -77,7 +77,7 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O
async (authDict?: AuthDict) => {
await mx.deleteMultipleDevices(Array.from(deleted), authDict);
},
[mx, deleted]
[mx, deleted],
),
useCallback(
(state: typeof deleteState) => {
@@ -87,11 +87,11 @@ export function OtherDevices({ devices, refreshDeviceList, showVerification }: O
}
setDeleteState(state);
},
[refreshDeviceList]
)
[refreshDeviceList],
),
);
const [authData, deleteError] = useUIAMatrixError(
deleteState.status === AsyncStatus.Error ? deleteState.error : undefined
deleteState.status === AsyncStatus.Error ? deleteState.error : undefined,
);
const deleting = deleteState.status === AsyncStatus.Loading || authData !== undefined;