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