mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-17 16:48:13 +02:00
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:
parent
0bb47ed190
commit
351f562c42
5 changed files with 30 additions and 4 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue