Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Jan 2, 2019
1 parent dd3e900 commit 42ad1a7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
47 changes: 23 additions & 24 deletions packages/devui/src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,26 @@ export default class Dialog extends (PureComponent || Component) {
<div onClick={!modal && onDismiss} />
<div>
{!noHeader && (
<div className="mc-dialog--header">
<div>{schema ? schema.title || title : title}</div>
{!modal && <button onClick={onDismiss}>×</button>}
</div>
)}
<div className="mc-dialog--header">
<div>{schema ? schema.title || title : title}</div>
{!modal && <button onClick={onDismiss}>×</button>}
</div>
)}
<div className="mc-dialog--body">
{children}
{schema && (
<Form {...rest}>
{
!noFooter &&
(
<input
type="submit"
ref={this.getFormButtonRef}
className="mc-dialog--hidden"
/>
)
}
</Form>
)}
<Form {...rest}>
{!noFooter &&
(
<input
type="submit"
ref={this.getFormButtonRef}
className="mc-dialog--hidden"
/>
)
}
</Form>
)}
</div>
{
!noFooter &&
Expand All @@ -85,12 +84,12 @@ export default class Dialog extends (PureComponent || Component) {
: actions
}
</div>
: <div className="mc-dialog--footer">
<Button onClick={onDismiss}>Cancel</Button>
<Button primary onClick={this.onSubmit}>
{submitText || 'Submit'}
</Button>
</div>
: <div className="mc-dialog--footer">
<Button onClick={onDismiss}>Cancel</Button>
<Button primary onClick={this.onSubmit}>
{submitText || 'Submit'}
</Button>
</div>
)
}
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/devui/src/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default class Form extends (PureComponent || Component) {
{
noSubmit ? <noscript /> :
children ||
<Button size="big" primary={primaryButton} theme={rest.theme} type="submit">
{submitText || 'Submit'}
</Button>
<Button size="big" primary={primaryButton} theme={rest.theme} type="submit">
{submitText || 'Submit'}
</Button>
}
</FormContainer>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/devui/src/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class Tabs extends Component {
if (!this.SelectedComponent) {
return (
<TabsContainer position={this.props.position}>
{ tabsHeader }
{tabsHeader}
</TabsContainer>
);
}
Expand Down

0 comments on commit 42ad1a7

Please sign in to comment.