Consolidate js/jsx indentation

Previously indentation was not checked at all and in order to avoid
reviewers time with style checks, we can enforce it with eslint.

Current js/jsx changes were made by: yarn lint-fix

Note this this change can easily become outdated so we need to
coordinate and merge it quickly as each rebase would loose previous
votes.

Change-Id: I85883fc8db924ad4ce9acad5acdd42aed7e4d0e4
This commit is contained in:
Sorin Sbarnea
2020-08-21 10:51:58 +01:00
parent 789f419595
commit ebad14f1f9
35 changed files with 268 additions and 265 deletions

View File

@@ -39,7 +39,7 @@ class ConfigModal extends React.Component {
this.state = {
isModalOpen: false,
autoReload: false,
}
}
this.handleModalToggle = () => {
this.setState(({ isModalOpen }) => ({
isModalOpen: !isModalOpen
@@ -73,7 +73,7 @@ class ConfigModal extends React.Component {
variant={ButtonVariant.plain}
key="cog"
onClick={this.handleModalToggle}>
<CogIcon />
<CogIcon />
</Button>
<Modal
variant={ModalVariant.small}
@@ -88,23 +88,23 @@ class ConfigModal extends React.Component {
Cancel
</Button>
]}
>
<div>
<p key="info">User configurable settings are saved in browser local storage only.</p>
<Switch
key="autoreload"
id="autoreload"
label="Auto reload status page"
isChecked={autoReload}
onChange={this.handleAutoReload}
/>
</div>
>
<div>
<p key="info">User configurable settings are saved in browser local storage only.</p>
<Switch
key="autoreload"
id="autoreload"
label="Auto reload status page"
isChecked={autoReload}
onChange={this.handleAutoReload}
/>
</div>
</Modal>
</React.Fragment>
</React.Fragment>
)
}
}
export default connect(state => ({
preferences: state.preferences,
}))(ConfigModal)
preferences: state.preferences,
}))(ConfigModal)