feat: add server version to ManagementApp

This commit is contained in:
Arthur E. Jones 2022-07-19 20:30:53 -05:00 committed by James Long
parent eed864aca1
commit 0ab294b50e

View file

@ -16,8 +16,11 @@ import Bootstrap from './subscribe/Bootstrap';
import Error from './subscribe/Error';
import ChangePassword from './subscribe/ChangePassword';
import ConfigServer from './ConfigServer';
import useServerVersion from '../../hooks/useServerVersion'
function Version() {
const version = useServerVersion();
return (
<ExternalLink
style={{
@ -32,7 +35,7 @@ function Version() {
}}
href={'https://actualbudget.com/blog/' + window.Actual.ACTUAL_VERSION}
>
{window.Actual.ACTUAL_VERSION}
{`App: v${window.Actual.ACTUAL_VERSION} | Server: ${version}`}
</ExternalLink>
);
}