chore: Modify the schedule creation prompt (#550)
* chore: modify the schedule creation prompt * chore: changed border color to offwhite --------- Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>
This commit is contained in:
@@ -46,7 +46,7 @@ export function usePrompt(): (info: PromptInfo, options?: DialogOptions) => void
|
|||||||
{info.description}
|
{info.description}
|
||||||
</Text>
|
</Text>
|
||||||
),
|
),
|
||||||
className: 'max-w-[400px] flex flex-col gap-2.5 p-6.25',
|
className: 'max-w-[415px] flex flex-col gap-2.5 p-6.25 border border-ut-offwhite/50',
|
||||||
},
|
},
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -21,19 +21,19 @@ export function useEnforceScheduleLimit(): () => boolean {
|
|||||||
return useCallback(() => {
|
return useCallback(() => {
|
||||||
if (schedules.length >= SCHEDULE_LIMIT) {
|
if (schedules.length >= SCHEDULE_LIMIT) {
|
||||||
showDialog({
|
showDialog({
|
||||||
title: `You have ${SCHEDULE_LIMIT} active schedules!`,
|
title: `You have too many schedules!`,
|
||||||
|
|
||||||
description: (
|
description: (
|
||||||
<>
|
<>
|
||||||
To encourage organization,{' '}
|
To encourage organization,{' '}
|
||||||
<span className='text-ut-burntorange'>please consider removing some unused schedules</span> you
|
<span className='text-ut-burntorange'>please consider deleting any unused schedules</span> you
|
||||||
may have.
|
may have.
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
|
||||||
buttons: close => (
|
buttons: close => (
|
||||||
<Button variant='filled' color='ut-burntorange' onClick={close}>
|
<Button variant='filled' color='ut-burntorange' onClick={close}>
|
||||||
I Understand
|
I understand
|
||||||
</Button>
|
</Button>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user