New title based on TeamName
This commit is contained in:
parent
efcfda8398
commit
da9fc5bfdf
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Reference in New Issue