Browse Source

Use title or name in header

pull/2032/head
Gabe Kangas 4 years ago
parent
commit
21585f5aea
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 9
      web/components/layouts/Main.tsx

9
web/components/layouts/Main.tsx

@ -1,15 +1,20 @@ @@ -1,15 +1,20 @@
import { Layout } from 'antd';
import { useRecoilValue } from 'recoil';
import { ServerStatusStore } from '../stores/ServerStatusStore';
import { ClientConfigStore } from '../stores/ClientConfigStore';
import { ClientConfigStore, clientConfigStateAtom } from '../stores/ClientConfigStore';
import { Content, Header } from '../ui';
import { ClientConfig } from '../../interfaces/client-config.model';
function Main() {
const clientConfig = useRecoilValue<ClientConfig>(clientConfigStateAtom);
const { name, title } = clientConfig;
return (
<>
<ServerStatusStore />
<ClientConfigStore />
<Layout>
<Header />
<Header name={title || name} />
<Content />
</Layout>
</>

Loading…
Cancel
Save