diff --git a/package.json b/package.json index 9684f55..5c622ea 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "react-async-bootstrapper": "2.1.1", "react-async-component": "2.0.0", "react-dom": "16.6.3", + "react-helmet": "5.2.0", "react-hot-loader": "4.3.12", "react-redux": "5.1.1", "react-router-dom": "4.3.1", @@ -84,6 +85,7 @@ "@types/prop-types": "15.5.6", "@types/react": "16.4.18", "@types/react-dom": "16.0.9", + "@types/react-helmet": "5.0.7", "@types/react-redux": "6.0.9", "@types/react-router-dom": "4.3.1", "@types/redux": "3.6.0", diff --git a/src/index.html b/src/index.html index b20bbad..b9aee7b 100755 --- a/src/index.html +++ b/src/index.html @@ -2,8 +2,8 @@
-{'This is a React Universal application that uses the libraries below.'}
diff --git a/src/views/contact/Contact.tsx b/src/views/contact/Contact.tsx index 1bbe2de..25141ac 100644 --- a/src/views/contact/Contact.tsx +++ b/src/views/contact/Contact.tsx @@ -1,10 +1,10 @@ import * as React from 'react'; import {connect} from 'react-redux'; -import MetaAction from '../../stores/meta/MetaAction'; import {Dispatch} from 'redux'; import IStore from '../../stores/IStore'; import ContactForm from './ContactForm'; import IAction from '../../stores/IAction'; +import {Helmet} from 'react-helmet'; interface IState {} interface IProps {} @@ -20,13 +20,13 @@ const mapDispatchToProps = (dispatch: Dispatch{'This contact form uses redux-form to do client-side validation.'}
diff --git a/src/views/errors/NotFound.tsx b/src/views/errors/NotFound.tsx index f7ac57d..50bdf49 100644 --- a/src/views/errors/NotFound.tsx +++ b/src/views/errors/NotFound.tsx @@ -1,9 +1,9 @@ import * as React from 'react'; import {connect} from 'react-redux'; -import MetaAction from '../../stores/meta/MetaAction'; import IStore from '../../stores/IStore'; import {Dispatch} from 'redux'; import IAction from '../../stores/IAction'; +import {Helmet} from 'react-helmet'; interface IState {} interface IProps {} @@ -19,13 +19,13 @@ const mapDispatchToProps = (dispatch: Dispatch{'We are sorry but the page you are looking for does not exist.'}
diff --git a/src/views/home/Home.tsx b/src/views/home/Home.tsx index d36e5d7..a528050 100644 --- a/src/views/home/Home.tsx +++ b/src/views/home/Home.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import {connect} from 'react-redux'; import {push} from 'connected-react-router'; import UserAction from '../../stores/user/UserAction'; -import MetaAction from '../../stores/meta/MetaAction'; import IStore from '../../stores/IStore'; import {Dispatch} from 'redux'; import GenericModalAsync from '../modals/GenericModalAsync'; @@ -12,6 +11,7 @@ import IAction from '../../stores/IAction'; import {IProps as GenericModalProps} from '../modals/GenericModal'; import UserModel from '../../stores/user/models/UserModel'; import * as PropTypes from 'prop-types'; +import {Helmet} from 'react-helmet'; interface IState {} interface IProps {} @@ -44,19 +44,16 @@ class Home extends React.Component