Move StandaloneRegistration to React
This commit is contained in:
parent
67b17ec317
commit
7c1ce3366d
20 changed files with 452 additions and 1358 deletions
|
@ -38,6 +38,22 @@ const mapStateToProps = (state: StateType) => {
|
|||
renderSafetyNumber: (props: SafetyNumberProps) => (
|
||||
<SmartSafetyNumberViewer {...props} />
|
||||
),
|
||||
requestVerification: (
|
||||
type: 'sms' | 'voice',
|
||||
number: string,
|
||||
token: string
|
||||
): Promise<void> => {
|
||||
const accountManager = window.getAccountManager();
|
||||
|
||||
if (type === 'sms') {
|
||||
return accountManager.requestSMSVerification(number, token);
|
||||
}
|
||||
|
||||
return accountManager.requestVoiceVerification(number, token);
|
||||
},
|
||||
registerSingleDevice: (number: string, code: string): Promise<void> => {
|
||||
return window.getAccountManager().registerSingleDevice(number, code);
|
||||
},
|
||||
theme: getTheme(state),
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue