Skip to content
Snippets Groups Projects
Commit 0ab294b5 authored by Arthur E. Jones's avatar Arthur E. Jones Committed by James Long
Browse files

feat: add server version to ManagementApp

parent eed864ac
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,11 @@ import Bootstrap from './subscribe/Bootstrap'; ...@@ -16,8 +16,11 @@ import Bootstrap from './subscribe/Bootstrap';
import Error from './subscribe/Error'; import Error from './subscribe/Error';
import ChangePassword from './subscribe/ChangePassword'; import ChangePassword from './subscribe/ChangePassword';
import ConfigServer from './ConfigServer'; import ConfigServer from './ConfigServer';
import useServerVersion from '../../hooks/useServerVersion'
function Version() { function Version() {
const version = useServerVersion();
return ( return (
<ExternalLink <ExternalLink
style={{ style={{
...@@ -32,7 +35,7 @@ function Version() { ...@@ -32,7 +35,7 @@ function Version() {
}} }}
href={'https://actualbudget.com/blog/' + window.Actual.ACTUAL_VERSION} href={'https://actualbudget.com/blog/' + window.Actual.ACTUAL_VERSION}
> >
{window.Actual.ACTUAL_VERSION} {`App: v${window.Actual.ACTUAL_VERSION} | Server: ${version}`}
</ExternalLink> </ExternalLink>
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment