File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
template/app/src/demo-ai-app Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -152,10 +152,14 @@ function NewTaskForm({ handleCreateTask }: { handleCreateTask: typeof createTask
152152 }
153153 } }
154154 />
155- < button
155+ < button
156156 type = 'button'
157157 onClick = { handleSubmit }
158- 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'
158+ disabled = { ! description }
159+ className = { cn (
160+ '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' ,
161+ description && 'hover:bg-yellow-100 hover:shadow-none'
162+ ) }
159163 >
160164 Add Task
161165 </ button >
You can’t perform that action at this time.
0 commit comments