Apply strictNullChecks to src/components/views/voip/* (#10692)
* change interface to discriminated union * fix ts errors * use definite assertion operator * use | undefined, instead of assertion operator * correct the button press arguments for dial button * update props to have `Props` suffix * add comment * remove unnecessary default * remove unnecessary comment * make classname match filename * setup test file * export consts for testing * add initial test * add another DialPad test * fix imports
This commit is contained in:
parent
b724cb5fd2
commit
01364ebf45
3 changed files with 88 additions and 12 deletions
|
@ -1278,7 +1278,7 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
|
|||
let title;
|
||||
let helpText;
|
||||
let buttonText;
|
||||
let goButtonFn;
|
||||
let goButtonFn: (() => Promise<void>) | null = null;
|
||||
let consultConnectSection;
|
||||
let extraSection;
|
||||
let footer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue