fix
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>{team ? `${team.name} – Outline` : "Outline"}</title>
|
<title>{team && team.name ? team.name : "Outline"}</title>
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0"
|
content="width=device-width, initial-scale=1.0"
|
||||||
|
@ -10,13 +10,13 @@ type Props = {
|
|||||||
auth: AuthStore,
|
auth: AuthStore,
|
||||||
};
|
};
|
||||||
|
|
||||||
const { auth } = this.props;
|
const PageTitle = observer(({ auth, title, favicon }: Props) => {
|
||||||
const { team } = auth;
|
const { team } = auth;
|
||||||
|
|
||||||
const PageTitle = observer(({ auth, title, favicon }: Props) => (
|
return (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>
|
<title>
|
||||||
{team ? `${title} - ${team.name} - Outline` : `${title} - Outline`}
|
{team && team.name ? `${title} - ${team.name}` : `${title} - Outline`}
|
||||||
</title>
|
</title>
|
||||||
<link
|
<link
|
||||||
rel="shortcut icon"
|
rel="shortcut icon"
|
||||||
@ -26,6 +26,7 @@ const PageTitle = observer(({ auth, title, favicon }: Props) => (
|
|||||||
/>
|
/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
));
|
);
|
||||||
|
});
|
||||||
|
|
||||||
export default inject("auth")(PageTitle);
|
export default inject("auth")(PageTitle);
|
||||||
|
Reference in New Issue
Block a user