diff --git a/admin/index.html b/admin/index.html
index 1be4de867..479534933 100644
--- a/admin/index.html
+++ b/admin/index.html
@@ -10,6 +10,7 @@
return {
title: '',
navbarColor: '',
+ version: '',
};
}
diff --git a/admin/src/App.tsx b/admin/src/App.tsx
index 0f984bdc8..45afa9891 100644
--- a/admin/src/App.tsx
+++ b/admin/src/App.tsx
@@ -11,6 +11,7 @@ import fetchJson from './lib/fetchJson';
export type Config = {
title: string;
navbarColor: string;
+ version: string;
};
type Props = {
diff --git a/admin/src/Layout.tsx b/admin/src/Layout.tsx
index 6648d6ea0..a1a8efb6b 100644
--- a/admin/src/Layout.tsx
+++ b/admin/src/Layout.tsx
@@ -65,22 +65,28 @@ const Drawer = styled(MuiDrawer, {
const mdTheme = createTheme({
typography: {
fontFamily:
- "'SF Pro Display','SF Compact Display',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'",
+ "'SF Pro Display','SF Compact Display',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol'",
},
palette: {
primary: {
main: '#485fc7',
- }
+ },
},
});
type DashboardContentProps = {
title: string;
navbarColor: string;
+ version: string;
children?: React.ReactElement | React.ReactElement[];
};
-function Content({ title, navbarColor, children }: DashboardContentProps) {
+function Content({
+ title,
+ navbarColor,
+ version,
+ children,
+}: DashboardContentProps) {
const [open, setOpen] = React.useState(false);
const toggleDrawer = () => {
setOpen(!open);
@@ -118,6 +124,17 @@ function Content({ title, navbarColor, children }: DashboardContentProps) {
/>
+
+ {version}
+