New title based on TeamName

This commit is contained in:
Matheus Breguêz 2020-06-29 17:01:34 -03:00
parent efcfda8398
commit da9fc5bfdf
2 changed files with 9 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Layout extends React.Component<Props> {
return (
<Container column auto>
<Helmet>
<title>Outline</title>
<title>{team.name}</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"

View File

@ -1,15 +1,22 @@
// @flow
import * as React from "react";
import { Helmet } from "react-helmet";
import PoliciesStore from "stores/PoliciesStore";
import AuthStore from "stores/AuthStore";
type Props = {
title: string,
favicon?: string,
policies: PoliciesStore,
auth: AuthStore,
};
const { policies, auth } = this.props;
const { team } = auth;
const PageTitle = ({ title, favicon }: Props) => (
<Helmet>
<title>{`${title} - Outline`}</title>
<title>{`${title} - ${team.name}`}</title>
<link
rel="shortcut icon"
type="image/png"