Skip to content

Commit

Permalink
Fix finishing setup wizard not make it be skipped next time (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX authored Oct 30, 2024
1 parent c57a758 commit 9733cf0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion gui/src/components/onboarding/pages/Done.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import { useOnboarding } from '@/hooks/onboarding';
import { Button } from '@/components/commons/Button';
import { SlimeVRIcon } from '@/components/commons/icon/SimevrIcon';
import { Typography } from '@/components/commons/Typography';
import { useNavigate } from 'react-router-dom';

export function DonePage() {
const { l10n } = useLocalization();
const navigate = useNavigate();
const { applyProgress, skipSetup } = useOnboarding();

applyProgress(1);
Expand All @@ -22,7 +24,13 @@ export function DonePage() {
{l10n.getString('onboarding-done-description')}
</Typography>
</div>
<Button variant="primary" to="/" onClick={skipSetup}>
<Button
variant="primary"
onClick={() => {
skipSetup();
navigate('/');
}}
>
{l10n.getString('onboarding-done-close')}
</Button>
</div>
Expand Down

0 comments on commit 9733cf0

Please sign in to comment.