style: update delete schedule prompt (#546)
Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user