diff options
| author | 8cy <[email protected]> | 2020-10-12 19:50:30 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-10-12 19:50:30 -0700 |
| commit | c87d894d01b789f7953f558ad5cc68080c0f8b29 (patch) | |
| tree | 1f42fa39ea03d1e4ccd92b56b4758b3fe783eee5 /src/components/navigation/DynamicTitle.js | |
| download | me-c87d894d01b789f7953f558ad5cc68080c0f8b29.tar.xz me-c87d894d01b789f7953f558ad5cc68080c0f8b29.zip | |
woops i forgot to commit these files lul
Diffstat (limited to 'src/components/navigation/DynamicTitle.js')
| -rw-r--r-- | src/components/navigation/DynamicTitle.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/navigation/DynamicTitle.js b/src/components/navigation/DynamicTitle.js new file mode 100644 index 0000000..f1cdb19 --- /dev/null +++ b/src/components/navigation/DynamicTitle.js @@ -0,0 +1,17 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; +import Helmet from 'react-helmet'; + +export default class DynamicTitle extends Component { + render() { + return( + <Helmet> + <title>{this.props.title ? this.props.title : "404 | Fuwn"}</title> + </Helmet> + ) + } +} + +DynamicTitle.propTypes = { + title: PropTypes.string +}
\ No newline at end of file |