Skip to content

Commit

Permalink
Merge pull request #230 from kbase/feature/account-state
Browse files Browse the repository at this point in the history
Account Page Migration
  • Loading branch information
dauglyon authored Jan 22, 2025
2 parents 30c7f34 + 3112305 commit 961b199
Show file tree
Hide file tree
Showing 24 changed files with 2,276 additions and 281 deletions.
27 changes: 27 additions & 0 deletions src/app/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ import { LogInContinue } from '../features/login/LogInContinue';
import { LoggedOut } from '../features/login/LoggedOut';
import { SignUp } from '../features/signup/SignUp';
import ORCIDLinkCreateLink from '../features/orcidlink/CreateLink';
import { Account } from '../features/account/Account';
import { AccountInfo } from '../features/account/AccountInfo';
import { LinkedProviders } from '../features/account/LinkedProviders';
import { LogInSessions } from '../features/account/LogInSessions';
import { UseAgreements } from '../features/account/UseAgreements';

export const LOGIN_ROUTE = '/login';
export const SIGNUP_ROUTE = '/signup';
Expand Down Expand Up @@ -67,6 +72,28 @@ const Routes: FC = () => {
{/* Sign Up */}
<Route path={`${SIGNUP_ROUTE}/:step?`} element={<SignUp />} />

{/* Account */}
<Route path="/account" element={<Authed element={<Account />} />}>
<Route index element={<Authed element={<AccountInfo />} />} />
<Route path="info" element={<Authed element={<AccountInfo />} />} />
<Route
path="providers"
element={<Authed element={<LinkedProviders />} />}
/>
<Route
path="providers/link/continue"
element={<Authed element={<LinkedProviders isContinueRoute />} />}
/>
<Route
path="sessions"
element={<Authed element={<LogInSessions />} />}
/>
<Route
path="use-agreements"
element={<Authed element={<UseAgreements />} />}
/>
</Route>

{/* Navigator */}
<Route
path={navigatorPath}
Expand Down
Loading

0 comments on commit 961b199

Please sign in to comment.