New title based on TeamName
This commit is contained in:
@@ -97,7 +97,7 @@ class Layout extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<Container column auto>
|
<Container column auto>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>Outline</title>
|
<title>{team.name}</title>
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0"
|
content="width=device-width, initial-scale=1.0"
|
||||||
|
|||||||
@@ -1,15 +1,22 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Helmet } from "react-helmet";
|
import { Helmet } from "react-helmet";
|
||||||
|
import PoliciesStore from "stores/PoliciesStore";
|
||||||
|
import AuthStore from "stores/AuthStore";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title: string,
|
title: string,
|
||||||
favicon?: string,
|
favicon?: string,
|
||||||
|
policies: PoliciesStore,
|
||||||
|
auth: AuthStore,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const { policies, auth } = this.props;
|
||||||
|
const { team } = auth;
|
||||||
|
|
||||||
const PageTitle = ({ title, favicon }: Props) => (
|
const PageTitle = ({ title, favicon }: Props) => (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{`${title} - Outline`}</title>
|
<title>{`${title} - ${team.name}`}</title>
|
||||||
<link
|
<link
|
||||||
rel="shortcut icon"
|
rel="shortcut icon"
|
||||||
type="image/png"
|
type="image/png"
|
||||||
|
|||||||
Reference in New Issue
Block a user