File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const ArticleEditorPage = () => {
12
12
const [ title , setTitle ] = useState ( '' ) ;
13
13
const [ keyword , setKeyword ] = useState ( '' ) ;
14
14
const [ summary , setSummary ] = useState ( '' ) ;
15
- const [ thumbnail ] = useState ( '' ) ;
15
+ const [ thumbnail , setThumbnail ] = useState ( '' ) ;
16
16
const [ content , setContent ] = useState ( '# 여기에 아티클을 작성해주세요' ) ;
17
17
18
18
const { mutate : addArticle } = usePostArticleQuery ( ) ;
@@ -80,6 +80,18 @@ const ArticleEditorPage = () => {
80
80
/>
81
81
</ FormField >
82
82
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
+
83
95
{ /* MarkdownEditor로 content 작성 */ }
84
96
< div style = { { marginBottom : '20px' } } >
85
97
< MarkdownEditor
You can’t perform that action at this time.
0 commit comments