chore: fix lint

This commit is contained in:
nathan
2025-09-07 11:58:17 +08:00
parent 89f00598d0
commit b7bc402a6c
3 changed files with 2 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ export function NormalModal ({
{modalCancelText} {modalCancelText}
</Button> </Button>
<Button <Button
data-testid={danger ? 'confirm-delete-button' : undefined} data-testid={danger ? 'confirm-delete-button' : 'modal-ok-button'}
color={danger ? 'error' : 'primary'} color={danger ? 'error' : 'primary'}
variant={'contained'} variant={'contained'}
size={'small'} size={'small'}

View File

@@ -59,12 +59,9 @@ function CreateSpaceModal({
classes={{ container: 'items-start max-md:mt-auto max-md:items-center mt-[10%] ' }} classes={{ container: 'items-start max-md:mt-auto max-md:items-center mt-[10%] ' }}
okLoading={loading} okLoading={loading}
onOk={handleOk} onOk={handleOk}
okButtonProps={{
'data-testid': 'modal-ok-button',
}}
PaperProps={{ PaperProps={{
className: 'w-[600px] max-w-[70vw]', className: 'w-[600px] max-w-[70vw]',
'data-testid': 'create-space-modal', ...({ 'data-testid': 'create-space-modal' } as Record<string, unknown>),
}} }}
> >
<div <div