parent
05c41fdcc1
commit
bc35463b09
|
@ -1,16 +1,16 @@
|
|||
import React, {PropTypes} from 'react'
|
||||
|
||||
const LogsToggle = ({areLogsVisible, onToggleLogsVisbility}) =>
|
||||
const LogsToggle = ({areLogsVisible, onToggleLogsVisibility}) =>
|
||||
<ul className="nav nav-tablist nav-tablist-sm nav-tablist-malachite logs-toggle">
|
||||
<li
|
||||
className={areLogsVisible ? null : 'active'}
|
||||
onClick={onToggleLogsVisbility}
|
||||
onClick={onToggleLogsVisibility}
|
||||
>
|
||||
Editor
|
||||
</li>
|
||||
<li
|
||||
className={areLogsVisible ? 'active' : null}
|
||||
onClick={onToggleLogsVisbility}
|
||||
onClick={onToggleLogsVisibility}
|
||||
>
|
||||
Editor + Logs
|
||||
</li>
|
||||
|
@ -20,7 +20,7 @@ const {bool, func} = PropTypes
|
|||
|
||||
LogsToggle.propTypes = {
|
||||
areLogsVisible: bool,
|
||||
onToggleLogsVisbility: func.isRequired,
|
||||
onToggleLogsVisibility: func.isRequired,
|
||||
}
|
||||
|
||||
export default LogsToggle
|
||||
|
|
|
@ -18,7 +18,7 @@ const Tickscript = ({
|
|||
isNewTickscript,
|
||||
areLogsVisible,
|
||||
areLogsEnabled,
|
||||
onToggleLogsVisbility,
|
||||
onToggleLogsVisibility,
|
||||
}) =>
|
||||
<div className="page">
|
||||
<TickscriptHeader
|
||||
|
@ -26,7 +26,7 @@ const Tickscript = ({
|
|||
onSave={onSave}
|
||||
areLogsVisible={areLogsVisible}
|
||||
areLogsEnabled={areLogsEnabled}
|
||||
onToggleLogsVisbility={onToggleLogsVisbility}
|
||||
onToggleLogsVisibility={onToggleLogsVisibility}
|
||||
isNewTickscript={isNewTickscript}
|
||||
/>
|
||||
<div className="page-contents--split">
|
||||
|
@ -58,7 +58,7 @@ Tickscript.propTypes = {
|
|||
}),
|
||||
areLogsVisible: bool,
|
||||
areLogsEnabled: bool,
|
||||
onToggleLogsVisbility: func.isRequired,
|
||||
onToggleLogsVisibility: func.isRequired,
|
||||
task: shape({
|
||||
id: string,
|
||||
script: string,
|
||||
|
|
|
@ -9,7 +9,7 @@ const TickscriptHeader = ({
|
|||
areLogsVisible,
|
||||
areLogsEnabled,
|
||||
isNewTickscript,
|
||||
onToggleLogsVisbility,
|
||||
onToggleLogsVisibility,
|
||||
}) =>
|
||||
<div className="page-header full-width">
|
||||
<div className="page-header__container">
|
||||
|
@ -20,7 +20,7 @@ const TickscriptHeader = ({
|
|||
<LogsToggle
|
||||
areLogsVisible={areLogsVisible}
|
||||
areLogsEnabled={areLogsEnabled}
|
||||
onToggleLogsVisbility={onToggleLogsVisbility}
|
||||
onToggleLogsVisibility={onToggleLogsVisibility}
|
||||
/>}
|
||||
<div className="page-header__right">
|
||||
<SourceIndicator />
|
||||
|
@ -43,7 +43,7 @@ TickscriptHeader.propTypes = {
|
|||
onSave: func,
|
||||
areLogsVisible: bool,
|
||||
areLogsEnabled: bool,
|
||||
onToggleLogsVisbility: func.isRequired,
|
||||
onToggleLogsVisibility: func.isRequired,
|
||||
task: shape({
|
||||
dbrps: arrayOf(
|
||||
shape({
|
||||
|
|
|
@ -198,7 +198,7 @@ class TickscriptPage extends Component {
|
|||
this.setState({task: {...this.state.task, id: e.target.value}})
|
||||
}
|
||||
|
||||
handleToggleLogsVisbility = () => {
|
||||
handleToggleLogsVisibility = () => {
|
||||
this.setState({areLogsVisible: !this.state.areLogsVisible})
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ class TickscriptPage extends Component {
|
|||
onChangeID={this.handleChangeID}
|
||||
areLogsVisible={areLogsVisible}
|
||||
areLogsEnabled={areLogsEnabled}
|
||||
onToggleLogsVisbility={this.handleToggleLogsVisbility}
|
||||
onToggleLogsVisibility={this.handleToggleLogsVisibility}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue