Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshHARDIYA committed Mar 20, 2017
1 parent 05159aa commit 14ab8fd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 34 deletions.
19 changes: 6 additions & 13 deletions src/Modal/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,15 @@ export default class Dialog extends Component {

return (
<div className={dialogClassName} onClick={handleOverlayClick}>
{close && (
<a
className={closeClassName}
onClick={handleClose}
/>
)}
{close && (<a className={closeClassName} onClick={handleClose} />)}
{header && (<div className="uk-modal-header"><h2>{header}</h2></div>)}
{caption && (<div className="uk-modal-caption">{caption}</div>)}
{children}
{ footer.length > 0 &&
(<div className="uk-modal-footer uk-text-right">
{
footer.map((component, i) => createElement(component, { key: i, handleClose }))
}
</div>)
}
{ footer.length > 0 && (
<div className="uk-modal-footer uk-text-right">
{footer.map((component, i) => createElement(component, { key: i, handleClose }))}
</div>
)}
</div>
)
}
Expand Down
8 changes: 4 additions & 4 deletions src/stories/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Button.displayName = 'Button'
storiesOf('Button', module)
.addWithInfo('Basic Usage', '', () => (
<div className="uk-margin-bottom">
<Button primary>Primary</Button> &nbsp;
<Button success>Success</Button> &nbsp;
<Button danger>Danger</Button> &nbsp;
<Button link>Link</Button> &nbsp;
<Button primary>Primary</Button>
<Button success>Success</Button>
<Button danger>Danger</Button>
<Button link>Link</Button>
<Button type="submit">Submit</Button>
</div>
), { header: false, inline: true, propTables: [Button] })
10 changes: 5 additions & 5 deletions src/stories/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ storiesOf('Input', module)
For more advanced use cases please check out [\`redux-form-uikit\`](http://form.uikit-react.io).
`, () => (
<form className="uk-margin-bottom uk-form">
<Input placeholder="Text input" /> &nbsp;
<Input danger defaultValue="danger" /> &nbsp;
<Input success defaultValue="success" /> &nbsp;
<Input placeholder="Text input" />
<Input danger defaultValue="danger" />
<Input success defaultValue="success" />
<Input blank placeholder="blank" />
</form>
), { header: false, inline: true, propTables: [Input], mtrcConf: { // eslint-disable-line
Expand Down Expand Up @@ -53,11 +53,11 @@ storiesOf('Input', module)
.addWithInfo('Form and icons', '', () => (
<form className="uk-margin-bottom uk-form">
<div className="uk-form-row">
<Input icon="calendar" /> &nbsp;
<Input icon="calendar" />
<Input flip icon="clock-o" />
</div>
<div className="uk-form-row">
<Input icon="spinner" /> &nbsp;
<Input icon="spinner" />
<Input flip icon="refresh" />
</div>
</form>
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2248,9 +2248,9 @@ eslint-plugin-jsx-a11y@4.0.0:
jsx-ast-utils "^1.0.0"
object-assign "^4.0.1"

eslint-plugin-react@6.10.0:
version "6.10.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.10.0.tgz#9c48b48d101554b5355413e7c64238abde6ef1ef"
eslint-plugin-react@6.10.2:
version "6.10.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.10.2.tgz#e5492fc842ab19a3ba3e26bbf7a3455bd9c7b06f"
dependencies:
array.prototype.find "^2.0.1"
doctrine "^1.2.2"
Expand Down Expand Up @@ -3535,14 +3535,14 @@ js-tokens@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"

js-yaml@3.6.1, js-yaml@~3.6.1:
js-yaml@3.6.1, js-yaml@^3.5.1, js-yaml@~3.6.1:
version "3.6.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
dependencies:
argparse "^1.0.7"
esprima "^2.6.0"

js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.7.0:
js-yaml@^3.4.3, js-yaml@^3.7.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80"
dependencies:
Expand Down Expand Up @@ -4984,9 +4984,9 @@ readable-stream@^1.0.27-1, readable-stream@^1.1.13, readable-stream@~1.1.9:
isarray "0.0.1"
string_decoder "~0.10.x"

"readable-stream@^2.0.0 || ^1.1.13", readable-stream@~2.1.4:
version "2.1.5"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0"
"readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.2.2:
version "2.2.6"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.6.tgz#8b43aed76e71483938d12a8d46c6cf1a00b1f816"
dependencies:
buffer-shims "^1.0.0"
core-util-is "~1.0.0"
Expand All @@ -4996,7 +4996,7 @@ readable-stream@^1.0.27-1, readable-stream@^1.1.13, readable-stream@~1.1.9:
string_decoder "~0.10.x"
util-deprecate "~1.0.1"

readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@~2.0.5:
readable-stream@~2.0.5:
version "2.0.6"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e"
dependencies:
Expand All @@ -5007,9 +5007,9 @@ readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@~2.0.5:
string_decoder "~0.10.x"
util-deprecate "~1.0.1"

readable-stream@^2.2.2:
version "2.2.6"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.6.tgz#8b43aed76e71483938d12a8d46c6cf1a00b1f816"
readable-stream@~2.1.4:
version "2.1.5"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.1.5.tgz#66fa8b720e1438b364681f2ad1a63c618448c9d0"
dependencies:
buffer-shims "^1.0.0"
core-util-is "~1.0.0"
Expand Down

0 comments on commit 14ab8fd

Please sign in to comment.