File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
deprecated/components/Editor Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import styled from 'styled-components';
33import Button from '@mui/material/Button' ;
44
55const Container = styled . div `
6- height: 50px ;
6+ height: 65px ;
77 background: #A09FE3;
88 width: 100%;
99`
@@ -16,7 +16,7 @@ const HeaderFlex = styled.div`
1616display: flex;
1717flex-direction: row;
1818flex-wrap: nowrap;
19- justify-content: space-between ;
19+ justify-content: flex-end ;
2020align-items: center;
2121padding: 0.3rem 0.5rem;
2222`
@@ -39,10 +39,11 @@ const ButtonStyle = styled(Button)`
3939`
4040/* Preview and text to be changed into a dropdown menu */
4141
42- const EditorHeader : React . FC = ( ) => {
42+ const EditorHeader : React . FC = ( props ) => {
4343 return (
4444 < Container >
4545 < HeaderFlex >
46+ { props . children }
4647 { /* <ButtonGroup>
4748 <ButtonStyle>
4849 ←
Original file line number Diff line number Diff line change @@ -82,14 +82,15 @@ const EditorPage: FC = () => {
8282
8383 return (
8484 < div style = { { height : "100%" } } >
85- < EditorHeader />
85+ < EditorHeader >
86+ < SyncDocument onClick = { ( ) => syncDocument ( ) } />
87+ < PublishDocument onClick = { ( ) => publishDocument ( id ?? "" ) } />
88+ </ EditorHeader >
8689 < Container >
8790 { blocks . map ( ( block , idx ) => createBlock ( block , idx , focusedId === idx ) ) }
8891 < InsertContentWrapper >
8992 < CreateHeadingBlock onClick = { buildButtonClickHandler ( "heading" ) } />
9093 < CreateContentBlock onClick = { buildButtonClickHandler ( "paragraph" ) } />
91- < SyncDocument onClick = { ( ) => syncDocument ( ) } />
92- < PublishDocument onClick = { ( ) => publishDocument ( id ?? "" ) } />
9394 </ InsertContentWrapper >
9495 </ Container >
9596 </ div >
You can’t perform that action at this time.
0 commit comments