Skip to content

Commit

Permalink
connect the registration pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jadmsaadaot committed Aug 14, 2024
1 parent b9fd5e6 commit aaa1b8f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions submit-web/src/routes/_authenticated/registration/complete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import {
RadioGroup,
Typography,
} from "@mui/material";
import { createFileRoute } from "@tanstack/react-router";
import { createFileRoute, useNavigate } from "@tanstack/react-router";

export const Route = createFileRoute("/_authenticated/registration/complete")({
component: Complete,
});

function Complete() {
const navigate = useNavigate();
return (
<GridContainer>
<Grid item xs={12}>
Expand Down Expand Up @@ -44,7 +45,13 @@ function Complete() {
</FormControl>
</Grid>
<Grid item xs={12}>
<Button variant="contained" color="primary">
<Button
variant="contained"
color="primary"
onClick={() => {
navigate({ to: "/projects" });
}}
>
Go
</Button>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion submit-web/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Index() {
<Button
variant="outlined"
color="primary"
onClick={() => navigate({ to: "/registration/create-account" })}
onClick={() => navigate({ to: "/eao-plans" })}
>
See Plans
</Button>
Expand Down
2 changes: 1 addition & 1 deletion submit-web/src/routes/oidc-callback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function OidcCallback() {
}

if (userData?.account_id) {
return <Navigate to="/profile" />;
return <Navigate to="/projects" />;
}

if (!isAuthLoading && !isUserDataLoading) {
Expand Down

0 comments on commit aaa1b8f

Please sign in to comment.