style: update delete schedule prompt (#546)

Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>
This commit is contained in:
Krish Patel
2025-03-05 14:15:59 -06:00
committed by GitHub
parent 008cb40cb8
commit 28ebb69612

View File

@@ -109,12 +109,14 @@ export default function ScheduleListItem({ schedule, onClick }: ScheduleListItem
const handleDelete = () => {
showDialog({
title: 'Are you sure?',
title: 'Delete schedule?',
description: (
<>
<Text>Deleting</Text>
<Text className='text-ut-burntorange'> {schedule.name} </Text>
<Text>is permanent and will remove all added courses from that schedule.</Text>
<Text>Deleting </Text>
<Text className='text-ut-burntorange'>{schedule.name}</Text>
<Text> is permanent and will remove all added courses from </Text>
<Text className='text-ut-burntorange'>{schedule.name}</Text>
<Text>.</Text>
</>
),
// eslint-disable-next-line react/no-unstable-nested-components
@@ -126,12 +128,13 @@ export default function ScheduleListItem({ schedule, onClick }: ScheduleListItem
<Button
variant='filled'
color='theme-red'
icon={Trash}
onClick={() => {
close();
deleteSchedule(schedule.id);
}}
>
Delete Permanently
Delete permanently
</Button>
</>
),