1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-19 04:51:13 +02:00

hide useless things in file mode

This commit is contained in:
Kushagra Gour
2018-10-07 18:03:46 +05:30
parent d7c7cca083
commit 2d09be9411
4 changed files with 28 additions and 21 deletions

View File

@@ -27,22 +27,24 @@ export function MainHeader(props) {
</svg>Run
</button>
<Button
onClick={props.addLibraryBtnHandler}
data-event-category="ui"
data-event-action="addLibraryButtonClick"
class="btn--dark flex-v-center hint--rounded hint--bottom-left"
aria-label="Add a JS/CSS library"
>
Add library{' '}
<span
id="js-external-lib-count"
style={`display:${props.externalLibCount ? 'inline' : 'none'}`}
class="count-label"
{!this.props.isFileMode && (
<Button
onClick={props.addLibraryBtnHandler}
data-event-category="ui"
data-event-action="addLibraryButtonClick"
class="btn--dark flex-v-center hint--rounded hint--bottom-left"
aria-label="Add a JS/CSS library"
>
{props.externalLibCount}
</span>
</Button>
Add library{' '}
<span
id="js-external-lib-count"
style={`display:${props.externalLibCount ? 'inline' : 'none'}`}
class="count-label"
>
{props.externalLibCount}
</span>
</Button>
)}
<button
class="btn--dark flex flex-v-center hint--rounded hint--bottom-left"