Page title is now set correctly

This commit is contained in:
Florian Scholdei
2020-01-21 15:05:15 +01:00
parent f12b25bd1f
commit 14d5d3ad06
2 changed files with 8 additions and 0 deletions

View File

@@ -28,6 +28,13 @@ const PageActionContainer = styled.div`
`;
export default class Page extends React.Component<Props> {
componentDidUpdate() {
const { title } = this.props;
if (document.title !== title) {
document.title = title;
}
}
render() {
const { error } = this.props;
return (