File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ interface IProps {
37
37
// Whether to wrap the page in a scrollbar
38
38
scrollbar ?: boolean ;
39
39
// Map of keys to replace with values, e.g {$placeholder: "value"}
40
- replaceMap ?: Map < string , string > ;
40
+ replaceMap ?: Record < string , string > ;
41
41
}
42
42
43
43
interface IState {
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export default class AccessSecretStorageDialog extends React.PureComponent<IProp
174
174
this . fileUpload . current . click ( ) ;
175
175
} ;
176
176
177
- private onPassPhraseNext = async ( ev : FormEvent < HTMLFormElement > ) => {
177
+ private onPassPhraseNext = async ( ev : FormEvent < HTMLFormElement > | React . MouseEvent ) => {
178
178
ev . preventDefault ( ) ;
179
179
180
180
if ( this . state . passPhrase . length <= 0 ) return ;
@@ -189,7 +189,7 @@ export default class AccessSecretStorageDialog extends React.PureComponent<IProp
189
189
}
190
190
} ;
191
191
192
- private onRecoveryKeyNext = async ( ev : FormEvent < HTMLFormElement > ) => {
192
+ private onRecoveryKeyNext = async ( ev : FormEvent < HTMLFormElement > | React . MouseEvent ) => {
193
193
ev . preventDefault ( ) ;
194
194
195
195
if ( ! this . state . recoveryKeyValid ) return ;
Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ interface IProps {
30
30
// If true, make the primary button a form submit button (input type="submit")
31
31
primaryIsSubmit ?: boolean ;
32
32
33
- // onClick handler for the primary button.
34
- onPrimaryButtonClick ?: ( ev : React . MouseEvent ) => void ;
33
+ // onClick handler for the primary button. Note that the returned promise, if
34
+ // returning a promise, is not used.
35
+ onPrimaryButtonClick ?: ( ev : React . MouseEvent ) => ( void | Promise < void > ) ;
35
36
36
37
// should there be a cancel button? default: true
37
38
hasCancel ?: boolean ;
You can’t perform that action at this time.
0 commit comments