Skip to content

Commit 961b199

Browse files
authored
Merge pull request #230 from kbase/feature/account-state
Account Page Migration
2 parents 30c7f34 + 3112305 commit 961b199

24 files changed

+2276
-281
lines changed

src/app/Routes.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ import { LogInContinue } from '../features/login/LogInContinue';
3232
import { LoggedOut } from '../features/login/LoggedOut';
3333
import { SignUp } from '../features/signup/SignUp';
3434
import ORCIDLinkCreateLink from '../features/orcidlink/CreateLink';
35+
import { Account } from '../features/account/Account';
36+
import { AccountInfo } from '../features/account/AccountInfo';
37+
import { LinkedProviders } from '../features/account/LinkedProviders';
38+
import { LogInSessions } from '../features/account/LogInSessions';
39+
import { UseAgreements } from '../features/account/UseAgreements';
3540

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

75+
{/* Account */}
76+
<Route path="/account" element={<Authed element={<Account />} />}>
77+
<Route index element={<Authed element={<AccountInfo />} />} />
78+
<Route path="info" element={<Authed element={<AccountInfo />} />} />
79+
<Route
80+
path="providers"
81+
element={<Authed element={<LinkedProviders />} />}
82+
/>
83+
<Route
84+
path="providers/link/continue"
85+
element={<Authed element={<LinkedProviders isContinueRoute />} />}
86+
/>
87+
<Route
88+
path="sessions"
89+
element={<Authed element={<LogInSessions />} />}
90+
/>
91+
<Route
92+
path="use-agreements"
93+
element={<Authed element={<UseAgreements />} />}
94+
/>
95+
</Route>
96+
7097
{/* Navigator */}
7198
<Route
7299
path={navigatorPath}

0 commit comments

Comments
 (0)