adds pomerium version to the user info endpoint (#3093)

* adds pomerium version to the user info endpoint

* linting

* order imports
This commit is contained in:
Nathan Hayfield 2022-03-03 20:00:17 +01:00 committed by GitHub
parent 0bb47ed190
commit 351f562c42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 4 deletions

View file

@ -4,7 +4,11 @@ import React, { FC } from "react";
import {FooterLink} from "./FooterLink";
import AppBar from "@mui/material/AppBar";
const Footer: FC = () => {
type FooterData = {
pomeriumVersion?: string;
}
const Footer: FC<FooterData> = ({pomeriumVersion}) => {
return (
<AppBar
position="fixed"
@ -20,7 +24,10 @@ const Footer: FC = () => {
justifyContent="center"
sx={{
fontSize: "0.85rem",
padding: "16px",
paddingLeft: "16px",
paddingRight: "16px",
paddingBottom: "8px",
paddingTop: "16px",
}}
>
<Box>
@ -45,6 +52,19 @@ const Footer: FC = () => {
</FooterLink>
</Box>
</Stack>
{!!pomeriumVersion && (
<Stack
direction="row"
spacing={2}
justifyContent="center"
sx={{
paddingBottom: "6px",
fontSize: "0.85rem",
}}
>
<Box><b>Pomerium Version:</b> {pomeriumVersion}</Box>
</Stack>
)}
</AppBar>
);
};