Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Migrate some dialogs to TypeScript #6185

Merged
merged 24 commits into from
Jun 18, 2021
Merged

Conversation

germain-gg
Copy link
Contributor

No description provided.

@germain-gg germain-gg requested a review from a team June 14, 2021 22:31
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than some small nits and one possible bug

src/stores/SetupEncryptionStore.ts Outdated Show resolved Hide resolved
src/components/views/dialogs/DeactivateAccountDialog.tsx Outdated Show resolved Hide resolved
src/components/views/dialogs/ConfirmUserActionDialog.tsx Outdated Show resolved Hide resolved
@@ -269,7 +269,7 @@ export default class Registration extends React.Component<IProps, IState> {
);
}

private onUIAuthFinished = async (success, response, extra) => {
private onUIAuthFinished = async (success, response) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

types?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the trail for response and it's set as any in js-sdk

src/components/views/dialogs/UserSettingsDialog.tsx Outdated Show resolved Hide resolved
src/components/views/dialogs/UserSettingsDialog.tsx Outdated Show resolved Hide resolved
@germain-gg germain-gg merged commit 2fd919e into develop Jun 18, 2021
@germain-gg germain-gg deleted the gsouquet/dialogs-ts-migration branch June 18, 2021 11:56
jryans added a commit that referenced this pull request Jun 18, 2021
#6185 converted
`SetupEncryptionStore` to TS, including moving the phase states to an enum. The
calling JS modules were forgotten, so they got a bit confused.

Fixes element-hq/element-web#17689
Regressed by #6185
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants