Fix Name Mistake & Lint
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.name} | Outline` | "Outline"}</title>
|
<title>{team.name ? `${team.name} | Outline` : "Outline"}</title>
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1.0"
|
content="width=device-width, initial-scale=1.0"
|
||||||
|
@ -15,7 +15,9 @@ const { team } = auth;
|
|||||||
|
|
||||||
const PageTitle = observer(({ auth, title, favicon }: Props) => (
|
const PageTitle = observer(({ auth, title, favicon }: Props) => (
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{`${title} - ${team.name} | Outline` | `${title} - Outline`}</title>
|
<title>
|
||||||
|
{team.name ? `${title} - ${team.name} | Outline` : `${title} - Outline`}
|
||||||
|
</title>
|
||||||
<link
|
<link
|
||||||
rel="shortcut icon"
|
rel="shortcut icon"
|
||||||
type="image/png"
|
type="image/png"
|
||||||
@ -24,6 +26,6 @@ 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