Step 5: Fix newly-discovered TS issues
This commit is contained in:
parent
7e21da0c7f
commit
115ae198c8
3 changed files with 6 additions and 5 deletions
|
@ -30,8 +30,9 @@ interface IProps {
|
|||
// If true, make the primary button a form submit button (input type="submit")
|
||||
primaryIsSubmit?: boolean;
|
||||
|
||||
// onClick handler for the primary button.
|
||||
onPrimaryButtonClick?: (ev: React.MouseEvent) => void;
|
||||
// onClick handler for the primary button. Note that the returned promise, if
|
||||
// returning a promise, is not used.
|
||||
onPrimaryButtonClick?: (ev: React.MouseEvent) => (void | Promise<void>);
|
||||
|
||||
// should there be a cancel button? default: true
|
||||
hasCancel?: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue