0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 06:42:45 +00:00

Hide divider arrows when not required

This commit is contained in:
G.Ambatte
2022-05-29 15:49:37 +12:00
parent 7b2486e411
commit 08db2e8492
2 changed files with 34 additions and 13 deletions

View File

@@ -232,6 +232,7 @@ const Editor = createClass({
renderEditor : function(){
if(this.isText()){
this.props.setMoveArrows(true);
return <>
<CodeEditor key='codeEditor'
ref='codeEditor'
@@ -243,6 +244,7 @@ const Editor = createClass({
</>;
}
if(this.isStyle()){
this.props.setMoveArrows(false);
return <>
<CodeEditor key='codeEditor'
ref='codeEditor'
@@ -255,6 +257,7 @@ const Editor = createClass({
</>;
}
if(this.isMeta()){
this.props.setMoveArrows(false);
return <>
<CodeEditor key='codeEditor'
view={this.state.view}