Skip to content

Commit d0d3268

Browse files
committed
fixup! Extract ResetIdentityBody into a separate object to allow re-using it
Fix use of ResetIdentityBodyVariant
1 parent d2daaa6 commit d0d3268

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/views/settings/tabs/user/EncryptionUserSettingsTab.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ import SetupEncryptionDialog from "../../../dialogs/security/SetupEncryptionDial
2020
import { SettingsSection } from "../../shared/SettingsSection";
2121
import { SettingsSubheader } from "../../SettingsSubheader";
2222
import { AdvancedPanel } from "../../encryption/AdvancedPanel";
23-
import { ResetIdentityPanel, type ResetIdentityPanelVariant } from "../../encryption/ResetIdentityPanel";
23+
import { ResetIdentityPanel } from "../../encryption/ResetIdentityPanel";
24+
import { type ResetIdentityBodyVariant } from "../../encryption/ResetIdentityBody";
2425
import { RecoveryPanelOutOfSync } from "../../encryption/RecoveryPanelOutOfSync";
2526
import { useTypedEventEmitter } from "../../../../../hooks/useEventEmitter";
2627
import { KeyStoragePanel } from "../../encryption/KeyStoragePanel";
@@ -147,7 +148,7 @@ export function EncryptionUserSettingsTab({ initialState = "loading" }: Props):
147148
* Given what state we want the tab to be in, what variant of the
148149
* ResetIdentityPanel do we need?
149150
*/
150-
function findResetVariant(state: State): ResetIdentityPanelVariant {
151+
function findResetVariant(state: State): ResetIdentityBodyVariant {
151152
switch (state) {
152153
case "reset_identity_compromised":
153154
return "compromised";

0 commit comments

Comments
 (0)