diff options
Diffstat (limited to 'packages/anastasis-webui/src')
-rw-r--r-- | packages/anastasis-webui/src/components/menu/NavigationBar.tsx | 4 | ||||
-rw-r--r-- | packages/anastasis-webui/src/components/menu/SideBar.tsx | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/anastasis-webui/src/components/menu/NavigationBar.tsx b/packages/anastasis-webui/src/components/menu/NavigationBar.tsx index ca5191da7..42b7a23e2 100644 --- a/packages/anastasis-webui/src/components/menu/NavigationBar.tsx +++ b/packages/anastasis-webui/src/components/menu/NavigationBar.tsx @@ -49,14 +49,14 @@ export function NavigationBar({ onMobileMenu, title }: Props): VNode { > Report a bug </a> - <a + {/* <a style={{ alignSelf: "center", padding: "0.5em", }} > Settings - </a> + </a> */} {/* <a role="button" class="navbar-burger" diff --git a/packages/anastasis-webui/src/components/menu/SideBar.tsx b/packages/anastasis-webui/src/components/menu/SideBar.tsx index 45d447d3c..7cc65a62d 100644 --- a/packages/anastasis-webui/src/components/menu/SideBar.tsx +++ b/packages/anastasis-webui/src/components/menu/SideBar.tsx @@ -28,6 +28,10 @@ interface Props { mobile?: boolean; } +const VERSION: string = process.env.__VERSION__ || "dev"; +const GIT_HASH: string | undefined = process.env.__GIT_HASH__; +const VERSION_WITH_HASH = GIT_HASH ? `${VERSION}-${GIT_HASH}` : VERSION; + export function Sidebar({ mobile }: Props): VNode { // const config = useConfigContext(); const config = { version: "none" }; @@ -57,7 +61,7 @@ export function Sidebar({ mobile }: Props): VNode { class="is-size-7 has-text-right" style={{ lineHeight: 0, marginTop: -10 }} > - Version {process.env.__VERSION__} ({config.version}) + Version {VERSION_WITH_HASH} </div> </div> </div> |