Add button for emu launch selection
Summary: Based on afcoplan's feedback, now we're showing a button for launching the emulators instead of having it inline. Reviewed By: mweststrate Differential Revision: D30603659 fbshipit-source-id: edae6c63fd58647b406398c897215910938ae429
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d48293c30f
commit
4ba426debd
@@ -7,13 +7,12 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {Alert, Input, Modal, Radio, Space, Typography} from 'antd';
|
||||
import {Alert, ButtonProps, Input, Modal, Radio, Space, Typography} from 'antd';
|
||||
import {createState, useValue} from '../state/atom';
|
||||
import React from 'react';
|
||||
import {renderReactRoot} from '../utils/renderReactRoot';
|
||||
import {Layout} from './Layout';
|
||||
import {Spinner} from './Spinner';
|
||||
|
||||
type DialogResult<T> = Promise<false | T> & {close: () => void};
|
||||
|
||||
type BaseDialogOptions = {
|
||||
@@ -21,6 +20,8 @@ type BaseDialogOptions = {
|
||||
okText?: string;
|
||||
cancelText?: string;
|
||||
width?: number;
|
||||
okButtonProps?: ButtonProps;
|
||||
cancelButtonProps?: ButtonProps;
|
||||
};
|
||||
|
||||
const defaultWidth = 400;
|
||||
@@ -74,7 +75,9 @@ export const Dialog = {
|
||||
disabled: opts.onValidate
|
||||
? !!opts.onValidate(currentValue) // non-falsy value means validation error
|
||||
: false,
|
||||
...opts.okButtonProps,
|
||||
}}
|
||||
cancelButtonProps={opts.cancelButtonProps}
|
||||
onCancel={cancel}
|
||||
width={opts.width ?? defaultWidth}>
|
||||
<Layout.Container gap>
|
||||
|
||||
Reference in New Issue
Block a user