diff --git a/package-lock.json b/package-lock.json index f96703e..5f21d48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11620,6 +11620,24 @@ "github-buttons": "^2.2.10" } }, + "react-helmet": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz", + "integrity": "sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw==", + "requires": { + "object-assign": "^4.1.1", + "prop-types": "^15.7.2", + "react-fast-compare": "^3.1.1", + "react-side-effect": "^2.1.0" + }, + "dependencies": { + "react-fast-compare": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz", + "integrity": "sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==" + } + } + }, "react-is": { "version": "16.8.6", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.6.tgz", @@ -11749,6 +11767,11 @@ "workbox-webpack-plugin": "4.2.0" } }, + "react-side-effect": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/react-side-effect/-/react-side-effect-2.1.1.tgz", + "integrity": "sha512-2FoTQzRNTncBVtnzxFOk2mCpcfxQpenBMbk5kSVBg5UcPqV9fRbgY2zhb7GTWWOlpFmAxhClBDlIq8Rsubz1yQ==" + }, "react-transition-group": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.2.1.tgz", diff --git a/package.json b/package.json index 88d0450..3f2c81b 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "react": "^16.8.6", "react-dom": "^16.8.6", "react-github-btn": "^1.0.6", + "react-helmet": "^6.1.0", "react-markdown": "^5.0.3", "react-router-dom": "^4.3.1", "react-scripts": "3.0.1" diff --git a/src/components/HomePage.js b/src/components/HomePage.js index 66db269..764ba33 100644 --- a/src/components/HomePage.js +++ b/src/components/HomePage.js @@ -13,6 +13,7 @@ import Button from '@material-ui/core/Button'; import Divider from '@material-ui/core/Divider'; import Nav from './Nav'; import GlobalStyles from '../styles/GlobalStyles'; +import { Helmet } from 'react-helmet'; const drawerWidth = 240; @@ -117,6 +118,9 @@ function HomePage (props) { return ( + + {title} +
diff --git a/src/components/Page.js b/src/components/Page.js index 7ddd7bd..7d37227 100644 --- a/src/components/Page.js +++ b/src/components/Page.js @@ -22,6 +22,7 @@ import Support from './Support'; import GlobalStyles from '../styles/GlobalStyles'; import Overview from './Overview'; import Paper from '@material-ui/core/Paper'; +import { Helmet } from 'react-helmet'; const drawerWidth = 240; @@ -125,6 +126,9 @@ function Page (props) { return ( + + {title} +