Skip to content

Commit cdd8229

Browse files
committed
Update Dialog text to use efault foreground color
1 parent 67f17fb commit cdd8229

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

app/api/files/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ def post(self, request, *args, **kwargs):
149149
file_type_description = (
150150
"JSON V1"
151151
if file_type == "application/json_v1"
152-
else "JSON V2" if file_type == "application/json_v2" else "CSV"
152+
else "JSON V2"
153+
if file_type == "application/json_v2"
154+
else "CSV"
153155
)
154156
Job.objects.create(
155157
scan_report=ScanReport.objects.get(id=scan_report_id),

app/next-client-app/components/files/DeleteFileDialog.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
Dialog,
55
DialogClose,
66
DialogContent,
7-
DialogDescription,
87
DialogFooter,
98
DialogHeader,
109
DialogTitle,
@@ -60,11 +59,11 @@ const DeleteFileDialog = ({
6059
<DialogContent>
6160
<DialogHeader className="text-start">
6261
<DialogTitle>Delete File</DialogTitle>
63-
<DialogDescription>
64-
Are you sure you want to delete "{fileName}"? This action cannot be
65-
undone and will permanently remove the file from storage.
66-
</DialogDescription>
6762
</DialogHeader>
63+
<p className="text-sm">
64+
Are you sure you want to delete "{fileName}"? This action cannot be
65+
undone and will permanently remove the file from storage.
66+
</p>
6867
<DialogFooter className="flex-col space-y-2 sm:space-y-0 sm:space-x-2">
6968
<Button variant="destructive" onClick={handleDelete}>
7069
Delete

0 commit comments

Comments
 (0)