Step 5: Fix newly-discovered TS issues

This commit is contained in:
Travis Ralston 2022-03-04 16:42:16 -07:00
parent 7e21da0c7f
commit 115ae198c8
3 changed files with 6 additions and 5 deletions

View file

@ -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;