@@ -41,58 +41,6 @@ export const InfoEditor = memo(({ className }: InfoEditorProps) => {
4141 < h3 className = "mb-2 text-lg font-bold" >
4242 { t . components . editor2 . InfoEditor . job_info }
4343 </ h3 >
44- < FormGroup
45- contentClassName = "grow"
46- label = { t . components . editor2 . InfoEditor . title }
47- labelInfo = "*"
48- >
49- < InputGroup
50- large
51- fill
52- placeholder = { t . components . editor2 . InfoEditor . title_placeholder }
53- value = { info . doc ?. title || '' }
54- onChange = { ( e ) => {
55- edit ( ( ) => {
56- setInfo ( ( prev ) => {
57- prev . doc . title = e . target . value
58- } )
59- return {
60- action : 'update-title' ,
61- desc : i18n . actions . editor2 . set_title ,
62- squashBy : '' ,
63- }
64- } )
65- } }
66- onBlur = { ( ) => edit ( ) }
67- />
68- < FieldError path = "doc.title" />
69- </ FormGroup >
70- < FormGroup
71- contentClassName = "grow"
72- label = { t . components . editor2 . InfoEditor . description }
73- >
74- < TextArea
75- fill
76- rows = { 4 }
77- large
78- placeholder = { t . components . editor2 . InfoEditor . description_placeholder }
79- value = { info . doc ?. details || '' }
80- onChange = { ( e ) => {
81- edit ( ( ) => {
82- setInfo ( ( prev ) => {
83- prev . doc . details = e . target . value
84- } )
85- return {
86- action : 'update-details' ,
87- desc : i18n . actions . editor2 . set_description ,
88- squashBy : '' ,
89- }
90- } )
91- } }
92- onBlur = { ( ) => edit ( ) }
93- />
94- < FieldError path = "doc.details" />
95- </ FormGroup >
9644 < FormGroup
9745 contentClassName = "grow"
9846 label = { t . components . editor2 . InfoEditor . stage }
@@ -149,6 +97,58 @@ export const InfoEditor = memo(({ className }: InfoEditorProps) => {
14997 />
15098 < FieldError path = "difficulty" />
15199 </ FormGroup >
100+ < FormGroup
101+ contentClassName = "grow"
102+ label = { t . components . editor2 . InfoEditor . title }
103+ labelInfo = "*"
104+ >
105+ < InputGroup
106+ large
107+ fill
108+ placeholder = { t . components . editor2 . InfoEditor . title_placeholder }
109+ value = { info . doc ?. title || '' }
110+ onChange = { ( e ) => {
111+ edit ( ( ) => {
112+ setInfo ( ( prev ) => {
113+ prev . doc . title = e . target . value
114+ } )
115+ return {
116+ action : 'update-title' ,
117+ desc : i18n . actions . editor2 . set_title ,
118+ squashBy : '' ,
119+ }
120+ } )
121+ } }
122+ onBlur = { ( ) => edit ( ) }
123+ />
124+ < FieldError path = "doc.title" />
125+ </ FormGroup >
126+ < FormGroup
127+ contentClassName = "grow"
128+ label = { t . components . editor2 . InfoEditor . description }
129+ >
130+ < TextArea
131+ fill
132+ rows = { 4 }
133+ large
134+ placeholder = { t . components . editor2 . InfoEditor . description_placeholder }
135+ value = { info . doc ?. details || '' }
136+ onChange = { ( e ) => {
137+ edit ( ( ) => {
138+ setInfo ( ( prev ) => {
139+ prev . doc . details = e . target . value
140+ } )
141+ return {
142+ action : 'update-details' ,
143+ desc : i18n . actions . editor2 . set_description ,
144+ squashBy : '' ,
145+ }
146+ } )
147+ } }
148+ onBlur = { ( ) => edit ( ) }
149+ />
150+ < FieldError path = "doc.details" />
151+ </ FormGroup >
152152 < FormGroup
153153 className = "mb-0"
154154 contentClassName = "grow"
0 commit comments