Skip to content

Commit

Permalink
fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
willwill96 committed May 19, 2020
1 parent 6492515 commit db7a023
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export default (props: Props) => {
const [navBarLeftRef, setNavBarLeftRef] = React.useState(null)
return (
<React.Fragment>
<Head>{/* <title>{props.title}</title> */}</Head>
<Head>
<title>{props.title}</title>
</Head>
<ThemeProvider>
<MuiPickersUtilsProvider utils={MomentUtils}>
<SelectionProvider>
Expand Down
5 changes: 4 additions & 1 deletion app/src/pages/workspaces/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ const Workspace = dynamic(() => import('../../components/workspace'), {
loading: () => <LinearProgress />,
})

const WorkspacePage = props => <Workspace {...props} />
WorkspacePage.getInitialProps = () => ({ title: 'Workspace' })

export default () => {
const router = useRouter()
const id = router.query['id']
return <Workspace id={id} />
return <WorkspacePage id={id} />
}

0 comments on commit db7a023

Please sign in to comment.