chore: instruction input should be textarea

This commit is contained in:
Louis 2023-11-24 15:22:39 +07:00
parent c5ede361c7
commit 15b9f8cd0e

View File

@ -8,7 +8,7 @@ import {
events, events,
} from '@janhq/core' } from '@janhq/core'
import { Button, Input } from '@janhq/uikit' import { Button, Textarea } from '@janhq/uikit'
import { useAtomValue } from 'jotai' import { useAtomValue } from 'jotai'
import { getActiveConvoIdAtom } from '@/helpers/atoms/Conversation.atom' import { getActiveConvoIdAtom } from '@/helpers/atoms/Conversation.atom'
@ -46,11 +46,12 @@ const ChatInstruction = () => {
)} )}
{isSettingInstruction && ( {isSettingInstruction && (
<div className="space-y-4"> <div className="space-y-4">
<Input <Textarea
placeholder={`Enter your instructions`} placeholder={`Enter your instructions`}
onChange={(e) => { onChange={(e) => {
setInstruction(e.target.value) setInstruction(e.target.value)
}} }}
className="h-24"
/> />
<Button <Button
themes={'outline'} themes={'outline'}