diff --git a/dashboard/src/main/Main.tsx b/dashboard/src/main/Main.tsx index fd300562f0..4b1d6b27d7 100644 --- a/dashboard/src/main/Main.tsx +++ b/dashboard/src/main/Main.tsx @@ -16,6 +16,8 @@ import VerifyEmail from "./auth/VerifyEmail"; import CurrentError from "./CurrentError"; import Home from "./home/Home"; +import StatusPage from "./status/StatusPage"; + type PropsType = {}; type StateType = { @@ -233,6 +235,17 @@ export default class Main extends Component { return ; } }} + /> + { + if (!this.state.isLoggedIn) { + return ; + } else if (!this.context.user?.email?.includes("@porter.run")) { + return ; + } + return ; + }} /> = ({ match }) => { + const projects = [{id: 0, name: "project-1" }, {id: 1, name: "project-2" }]; return ( @@ -25,14 +26,14 @@ const StatusPage: React.FC = ({ match }) => { <> - {Array.from({ length: 100 }).map((_, j) => ( + {projects.map((project, _) => ( <> - project-{j} + { project.name } Operational