mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-06-13 10:20:53 +02:00
disabled button to add task if there is no description
This commit is contained in:
parent
a75ec9a3b9
commit
09a8233c4b
@ -152,10 +152,14 @@ function NewTaskForm({ handleCreateTask }: { handleCreateTask: typeof createTask
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
className='min-w-[7rem] font-medium text-gray-800/90 bg-yellow-50 shadow-md ring-1 ring-inset ring-slate-200 py-2 px-4 rounded-md hover:bg-yellow-100 duration-200 ease-in-out focus:outline-none focus:shadow-none hover:shadow-none'
|
disabled={!description}
|
||||||
|
className={cn(
|
||||||
|
'min-w-[7rem] font-medium text-gray-800/90 bg-yellow-50 shadow-md ring-1 ring-inset ring-slate-200 py-2 px-4 rounded-md duration-200 ease-in-out focus:outline-none focus:shadow-none',
|
||||||
|
description && 'hover:bg-yellow-100 hover:shadow-none'
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
Add Task
|
Add Task
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user