Skip to content

Commit

Permalink
refactor: remove redundant BackupModal from FederationSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
kleysc committed Jan 14, 2025
1 parent e4d709c commit 055a40e
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions apps/router/src/guardian-ui/setup/FederationSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { VerifyGuardians } from '../components/setup/screens/verifyGuardians/Ver
import { SetupComplete } from '../components/setup/screens/setupComplete/SetupComplete';
import { SetupProgress as SetupStepper } from '../components/setup/SetupProgress';
import { TermsOfService } from '../components/TermsOfService';
import { BackupModal } from '../components/BackupModal';

import { ReactComponent as ArrowLeftIcon } from '../assets/svgs/arrow-left.svg';
import { ReactComponent as CancelIcon } from '../assets/svgs/x-circle.svg';
Expand Down Expand Up @@ -138,20 +137,7 @@ export const FederationSetup: React.FC = () => {
canRestart = true;
break;
case SetupProgress.SetupComplete:
content = (
<>
<SetupComplete role={role ?? GuardianRole.Follower} />
<BackupModal
isOpen={true}
onClose={() => {
dispatch({
type: SETUP_ACTION_TYPE.SET_INITIAL_STATE,
payload: null,
});
}}
/>
</>
);
content = <SetupComplete role={role ?? GuardianRole.Follower} />;
break;
default:
title = t('setup.progress.error.title');
Expand Down

0 comments on commit 055a40e

Please sign in to comment.