diff --git a/app/components/PageTitle.js b/app/components/PageTitle.js index 7339e0df..b8b7f871 100644 --- a/app/components/PageTitle.js +++ b/app/components/PageTitle.js @@ -1,5 +1,6 @@ // @flow import * as React from "react"; +import { observer, inject } from "mobx-react"; import { Helmet } from "react-helmet"; import AuthStore from "stores/AuthStore"; @@ -12,7 +13,7 @@ type Props = { const { auth } = this.props; const { team } = auth; -const PageTitle = ({ title, favicon }: Props) => ( +const PageTitle = observer(({ auth, title, favicon }: Props) => ( {`${title} - ${team.name} | Outline` | `${title} - Outline`} ( ); -export default PageTitle; +export default inject("auth")(PageTitle);