Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor rejectionmodal prioritydropdown to antd select
- Loading branch information
efloden
committed
Apr 30, 2018
1 parent
af4681a
commit 965199c
Showing
6 changed files
with
83 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 24 additions & 24 deletions
48
server/zanata-frontend/src/app/components/Modal/Modal.story.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// @ts-nocheck | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import { action } from '@storybook/addon-actions' | ||
import Modal from 'antd/lib/modal' | ||
// import 'antd/lib/modal/style/index.less' | ||
import Button from 'antd/lib/button' | ||
// import 'antd/lib/button/style/index.less' | ||
|
||
storiesOf('Modal', module) | ||
.add('default', () => ( | ||
<div> | ||
<Button type="primary" onClick={action('onClick')}>Open</Button> | ||
<Modal | ||
title="Basic Modal" | ||
visible | ||
onOk={action('onClick')} | ||
onCancel={action('onClick')} | ||
> | ||
<p>A modal with header, body, and set of actions in the footer.</p> | ||
<a href='https://ant.design/components/modal'>ant.design Modal</a> | ||
</Modal> | ||
</div> | ||
)) | ||
// // @ts-nocheck | ||
// import React from 'react' | ||
// import { storiesOf } from '@storybook/react' | ||
// import { action } from '@storybook/addon-actions' | ||
// import Modal from 'antd/lib/modal' | ||
// // import 'antd/lib/modal/style/index.less' | ||
// import Button from 'antd/lib/button' | ||
// // import 'antd/lib/button/style/index.less' | ||
// | ||
// storiesOf('Modal', module) | ||
// .add('default', () => ( | ||
// <div> | ||
// <Button type="primary" onClick={action('onClick')}>Open</Button> | ||
// <Modal | ||
// title="Basic Modal" | ||
// visible | ||
// onOk={action('onClick')} | ||
// onCancel={action('onClick')} | ||
// > | ||
// <p>A modal with header, body, and set of actions in the footer.</p> | ||
// <a href='https://ant.design/components/modal'>ant.design Modal</a> | ||
// </Modal> | ||
// </div> | ||
// )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters