Skip to content

Commit 38c9258

Browse files
committed
feat: 썸네일 폼 필드 추가
1 parent 5d13927 commit 38c9258

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

frontend/src/pages/ArticleEditorPage.tsx

+13-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ArticleEditorPage = () => {
1212
const [title, setTitle] = useState('');
1313
const [keyword, setKeyword] = useState('');
1414
const [summary, setSummary] = useState('');
15-
const [thumbnail] = useState('');
15+
const [thumbnail, setThumbnail] = useState('');
1616
const [content, setContent] = useState('# 여기에 아티클을 작성해주세요');
1717

1818
const { mutate: addArticle } = usePostArticleQuery();
@@ -80,6 +80,18 @@ const ArticleEditorPage = () => {
8080
/>
8181
</FormField>
8282

83+
{/* 썸네일 폼 필드 */}
84+
<FormField>
85+
<FormField.Label label="썸네일" htmlFor="thumbnail" required />
86+
<FormField.Input
87+
placeholder="썸네일 사진 url를 입력하세요"
88+
onChange={e => setThumbnail(e.target.value)}
89+
name="thumbnail"
90+
id="thumbnail"
91+
value={thumbnail}
92+
/>
93+
</FormField>
94+
8395
{/* MarkdownEditor로 content 작성 */}
8496
<div style={{ marginBottom: '20px' }}>
8597
<MarkdownEditor

0 commit comments

Comments
 (0)