diff --git a/app/components/Layout.js b/app/components/Layout.js index d5403e2147..1a560f2247 100644 --- a/app/components/Layout.js +++ b/app/components/Layout.js @@ -97,7 +97,7 @@ class Layout extends React.Component { return ( - Outline + {team && team.name ? team.name : "Outline"} ( - - {`${title} - Outline`} - - - -); +const PageTitle = observer(({ auth, title, favicon }: Props) => { + const { team } = auth; -export default PageTitle; + return ( + + + {team && team.name ? `${title} - ${team.name}` : `${title} - Outline`} + + + + + ); +}); + +export default inject("auth")(PageTitle);