feat(web): add page titles (#170)

* feat(web): add page titles

* add html title
This commit is contained in:
41666 2021-03-13 21:17:00 -05:00 committed by GitHub
parent 2d9d70734b
commit 637be8bfa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 52 additions and 19 deletions

View file

@ -3,6 +3,7 @@ import { ServersTemplate } from '@roleypoly/design-system/templates/servers';
import * as React from 'react';
import { useAppShellProps } from '../contexts/app-shell/AppShellContext';
import { useSessionContext } from '../contexts/session/SessionContext';
import { Title } from '../utils/metaTitle';
const ServersPage = () => {
const { isAuthenticated, session } = useSessionContext();
@ -11,7 +12,12 @@ const ServersPage = () => {
return <Redirect to="/" />;
}
return <ServersTemplate {...appShellProps} />;
return (
<>
<Title title={'Your Guilds - Roleypoly'} />
<ServersTemplate {...appShellProps} />
</>
);
};
export default ServersPage;