Skip to content

Commit

Permalink
Refactor: Chat-form css
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 2, 2024
1 parent 7e13444 commit 618e796
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/ui/components/molecule/user/chat-form/chat-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { postQuestion } from '../../../../../api/post-question';
import { cn } from '../../../../../utils/style';

interface ChatFormProps {
type: string;
category: string;
type: 'SUSI' | 'PYEONIP' | 'JEONGSI';
category?: 'PAST_QUESTIONS' | 'INTERVIEW_PRACTICAL_TEST' | 'PASSING_RESULT' | 'ADMISSION_GUIDELINE';
}

const ChatForm = ({ type, category }: ChatFormProps) => {
Expand All @@ -32,10 +32,7 @@ const ChatForm = ({ type, category }: ChatFormProps) => {
};

return (
<form
className={cn('flex w-96 flex-nowrap rounded-2xl px-4 py-2', 'bg-background-default')}
onSubmit={handleSubmit}
>
<form className={cn('flex flex-nowrap rounded-2xl px-4 py-2', 'bg-background-default')} onSubmit={handleSubmit}>
<TextInput value={content} onValueChange={handleChange} placeholder="메시지를 입력해주세요." />
<IconButton type="submit" disabled={disabled}>
<SendIcon />
Expand Down

0 comments on commit 618e796

Please sign in to comment.