Fix various eslint issues

This commit is contained in:
2025-05-23 23:03:05 +02:00
parent ad2334c414
commit 78de42d195
24 changed files with 65 additions and 61 deletions

View File

@@ -42,7 +42,7 @@ const CreateFileModal: React.FC<CreateFileModalProps> = ({ onCreateFile }) => {
>
Cancel
</Button>
<Button onClick={handleSubmit}>Create</Button>
<Button onClick={() => void handleSubmit()}>Create</Button>
</Group>
</Box>
</Modal>

View File

@@ -28,7 +28,7 @@ const DeleteFileModal: React.FC<DeleteFileModalProps> = ({
title="Delete File"
centered
>
<Text>Are you sure you want to delete "{selectedFile}"?</Text>
<Text>Are you sure you want to delete &quot;{selectedFile}&quot;?</Text>
<Group justify="flex-end" mt="xl">
<Button
variant="default"
@@ -36,7 +36,7 @@ const DeleteFileModal: React.FC<DeleteFileModalProps> = ({
>
Cancel
</Button>
<Button color="red" onClick={handleConfirm}>
<Button color="red" onClick={() => void handleConfirm()}>
Delete
</Button>
</Group>