We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4a628 commit 0ce6d17Copy full SHA for 0ce6d17
src/helper/Prompt.tsx
@@ -67,7 +67,14 @@ class PromptWithoutStyles extends React.Component<Props, State> {
67
}
68
69
public static show(options: Options) {
70
- this.component.setState({...options, shown: true});
+ this.component.setState({title: options.title,
71
+ button1: options.button1,
72
+ button1Callback: options.button1Callback,
73
+ button2: options.button2,
74
+ button2Callback: options.button2Callback,
75
+ message: options.message,
76
+ shown: true,
77
+ });
78
79
80
export const PromptUtil = {
0 commit comments