File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -43,22 +43,20 @@ const TopicDetail: React.FC<React.PropsWithChildren<Props>> = (props) => {
4343 }
4444
4545 return (
46- < div >
47- < PageHeader title = { data ?. title } >
48- < MdEditor
49- className = { styles . editor }
50- readOnly
51- view = { {
52- menu : false ,
53- md : false ,
54- html : true ,
55- } }
56- value = { data . content }
57- renderHTML = { ( text ) => mdParser . render ( text ) }
58- // onChange={handleEditorChange}
59- />
60- </ PageHeader >
61- </ div >
46+ < PageHeader title = { data ?. title } onBack = { ( ) => window . history . back ( ) } >
47+ < MdEditor
48+ className = { styles . editor }
49+ readOnly
50+ view = { {
51+ menu : false ,
52+ md : false ,
53+ html : true ,
54+ } }
55+ value = { data . content }
56+ renderHTML = { ( text ) => mdParser . render ( text ) }
57+ // onChange={handleEditorChange}
58+ />
59+ </ PageHeader >
6260 ) ;
6361} ;
6462
You can’t perform that action at this time.
0 commit comments