Skip to content

Conversation

@futurechallenger
Copy link
Contributor

  1. Remove CloseButton in InsideModal, as it's not needed in Modal.
  2. Add showCloseBtn and onCancel props according to Modal prop types.
  3. Add showCloseBtn prop in InsideModal, it's default value is true.

So the modal can be closed.

Bruce Li and others added 21 commits June 14, 2018 11:19
import classnames from 'classnames';
import Modal from '../Modal';
import styles from './styles.scss';
import InsideModalClose from '../../assets/images/InsideModalClose.svg';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like can remove this line at the same time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

show={show}
showCloseBtn={showCloseBtn}
onCancel={onClose}
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about add aclickOutToClose props?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's cool! Done!

@futurechallenger futurechallenger merged commit b401513 into ringcentral:master Aug 2, 2018
@futurechallenger futurechallenger deleted the feature/user-permission branch August 2, 2018 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants