feat(new-toolbars): initial implementation

This commit is contained in:
Leonard Kim
2018-03-06 16:28:19 -08:00
committed by Lyubo Marinov
parent 962df14382
commit d93782af8a
108 changed files with 5227 additions and 1164 deletions

View File

@@ -39,6 +39,12 @@ type Props = {
*/
disableBlanketClickDismiss: boolean,
/**
* If true, the cancel button will not display but cancel actions, like
* clicking the blanket, will cancel.
*/
hideCancelButton: boolean,
/**
* Whether the dialog is modal. This means clicking on the blanket will
* leave the dialog open. No cancel button.
@@ -263,7 +269,9 @@ class StatelessDialog extends Component<Props> {
* not modal.
*/
_renderCancelButton(options = {}) {
if (options.cancelDisabled || options.isModal) {
if (options.cancelDisabled
|| options.isModal
|| options.hideCancelButton) {
return null;
}