Fix Name Mistake & Lint

This commit is contained in:
Matheus Breguêz
2020-07-07 09:11:19 -03:00
parent 35270cd104
commit a25e03d7cd
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -15,7 +15,9 @@ const { team } = auth;
const PageTitle = observer(({ auth, title, favicon }: Props) => (
<Helmet>
<title>{`${title} - ${team.name} | Outline` | `${title} - Outline`}</title>
<title>
{team.name ? `${title} - ${team.name} | Outline` : `${title} - Outline`}
</title>
<link
rel="shortcut icon"
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" />
</Helmet>
);
));
export default inject("auth")(PageTitle);