diff --git a/client/src/components/BoardPage/BoardPage.jsx b/client/src/components/BoardPage/BoardPage.jsx index 286a490..66ab9b8 100644 --- a/client/src/components/BoardPage/BoardPage.jsx +++ b/client/src/components/BoardPage/BoardPage.jsx @@ -33,8 +33,9 @@ export class BoardPage extends React.Component { } render() { + const { board } = this.props; return ( - +
{this.renderBoard()}
diff --git a/client/src/components/HomePage/HomePage.jsx b/client/src/components/HomePage/HomePage.jsx index ba132e8..112bb26 100644 --- a/client/src/components/HomePage/HomePage.jsx +++ b/client/src/components/HomePage/HomePage.jsx @@ -9,7 +9,7 @@ import { selectBoardByUserProjects } from '../../store/selectors/boards'; export class HomePage extends React.Component { render() { return ( - +
diff --git a/client/src/components/Page.jsx b/client/src/components/Page.jsx index 2e83725..dea06fc 100644 --- a/client/src/components/Page.jsx +++ b/client/src/components/Page.jsx @@ -10,4 +10,17 @@ export class Page extends React.PureComponent { ); } + + componentDidMount() { + this.updateTitle(); + } + + componentDidUpdate() { + this.updateTitle(); + } + + updateTitle() { + const { title } = this.props; + if (title !== undefined) window.document.title = title; + } } \ No newline at end of file