import React, { Component } from "react"; import { Route, Switch, Redirect, RouterProps, RouteProps } from "react-router"; import { routes } from '../../routes/routes'; import { AUTHELIA_GITHUB_URL } from "../../constants"; import styles from '../../assets/scss/layouts/PortalLayout/PortalLayout.module.scss'; interface Props extends RouterProps, RouteProps {} class PortalLayout extends Component { private renderTitle() { if (!this.props.location) return; for (let i in routes) { const route = routes[i]; if (route.path && route.path.indexOf(this.props.location.pathname) > -1) { return route.title.toUpperCase(); } } return; } render() { return (
{this.renderTitle()}
{routes.map((r, key) => { return })}
Powered by Authelia
) } } export default PortalLayout;