Skip to content

Commit

Permalink
Remove old onboarding code (#695)
Browse files Browse the repository at this point in the history
* Delete page

* Remove old onboarding code from app.tsx
  • Loading branch information
camilovegag authored Jul 22, 2024
1 parent 2963a25 commit 948fabd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 113 deletions.
11 changes: 0 additions & 11 deletions packages/berlin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import Event from './pages/Event.tsx';
import Events from './pages/Events.tsx';
import Holding from './pages/Holding';
import Landing from './pages/Landing';
import Onboarding from './pages/Onboarding';
import PassportPopupRedirect from './pages/Popup';
import PublicGroupRegistration from './pages/PublicGroupRegistration.tsx';
import Register from './pages/Register';
Expand Down Expand Up @@ -72,12 +71,6 @@ async function redirectOnLandingLoader(queryClient: QueryClient) {
return null;
}

const onboardingState = useAppStore.getState().onboardingStatus;

if (onboardingState === 'INCOMPLETE') {
return redirect('/onboarding');
}

const events = await queryClient.fetchQuery({
queryKey: ['events'],
queryFn: fetchEvents,
Expand Down Expand Up @@ -195,10 +188,6 @@ const router = (queryClient: QueryClient) =>
{
loader: () => redirectToLandingLoader(queryClient),
children: [
{
path: '/onboarding',
Component: Onboarding,
},
{
path: '/data-policy',
Component: DataPolicy,
Expand Down
102 changes: 0 additions & 102 deletions packages/berlin/src/pages/Onboarding.tsx

This file was deleted.

0 comments on commit 948fabd

Please sign in to comment.