generated from bcgov/EPIC.scaffold
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
navigating to case-files route from index page
- Loading branch information
1 parent
54d960c
commit 252a5b3
Showing
1 changed file
with
2 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
import { createFileRoute } from "@tanstack/react-router"; | ||
import { Button, Paper } from "@mui/material"; | ||
import { useNavigate } from "@tanstack/react-router"; | ||
import { createFileRoute, Navigate } from "@tanstack/react-router"; | ||
|
||
export const Route = createFileRoute("/")({ | ||
component: Index, | ||
}); | ||
|
||
function Index() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<> | ||
<Paper elevation={2} sx={{ padding: "0 1.5rem 2.5rem", backgroundColor: 'primary.accent.light' }}> | ||
<h2>Environmental Assessments</h2> | ||
<p> | ||
British Columbia's environmental assessment process provides | ||
opportunities for Indigenous Nations, government agencies and the | ||
public to influence the outcome of environmental assessments in | ||
British Columbia. | ||
</p> | ||
<Button | ||
variant="outlined" | ||
color="primary" | ||
onClick={() => navigate({to: "/eao-plans"})} | ||
> | ||
See Plans | ||
</Button> | ||
</Paper> | ||
</> | ||
); | ||
return <Navigate to="/ce-database/case-files"></Navigate>; | ||
} | ||
|