Skip to content

Commit

Permalink
Add dynamic tab titles
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatGameDota committed Nov 28, 2020
1 parent 73b8432 commit 928d937
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/components/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -117,6 +118,9 @@ function HomePage (props) {

return (
<ThemeProvider theme={GlobalTheme}>
<Helmet>
<title>{title}</title>
</Helmet>
<div className={classes.root}>
<CssBaseline />
<AppBar position='fixed' className={classes.appBar}>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -125,6 +126,9 @@ function Page (props) {

return (
<ThemeProvider theme={GlobalTheme}>
<Helmet>
<title>{title}</title>
</Helmet>
<div>
<div className={classes.root}>
<CssBaseline />
Expand Down

0 comments on commit 928d937

Please sign in to comment.