summaryrefslogtreecommitdiff
path: root/src/pages/Profile.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-22 13:39:50 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:07 +0200
commitd628e0ac5162bb1baeb16fcf21b688d37bbff758 (patch)
treea26163a319e60e2a99893aadfe7f1cd6fad9363f /src/pages/Profile.js
parent5633c36d49c4ffd61688b0d05182934973fdd3ce (diff)
Implement dynamic web page document title change
Diffstat (limited to 'src/pages/Profile.js')
-rw-r--r--src/pages/Profile.js26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/pages/Profile.js b/src/pages/Profile.js
index c8805c6f..6d09dc89 100644
--- a/src/pages/Profile.js
+++ b/src/pages/Profile.js
@@ -1,22 +1,26 @@
import React from 'react';
+import DocumentTitle from "react-document-title";
import {connect} from "react-redux";
import {openDeleteProfileModal} from "../actions/modals/profile";
import AppNavbar from "../components/navigation/AppNavbar";
import DeleteProfileModal from "../containers/modals/DeleteProfileModal";
const ProfileContainer = ({onDelete}) => (
- <div className="full-height">
- <AppNavbar inSimulation={false}/>
- <div className="container text-page-container full-height">
- <button className="btn btn-danger" onClick={onDelete}>Delete my account on OpenDC</button>
- <p>
- This does not delete your Google account, it simply disconnects it from the OpenDC app and deletes any
- simulation info that is associated with you (simulations you own, and any authorizations you may
- have on other projects).
- </p>
+ <DocumentTitle title="My Profile - OpenDC">
+ <div className="full-height">
+ <AppNavbar inSimulation={false}/>
+ <div className="container text-page-container full-height">
+ <button className="btn btn-danger" onClick={onDelete}>Delete my account on OpenDC</button>
+ <p>
+ This does not delete your Google account, it simply disconnects it from the OpenDC app and deletes
+ any
+ simulation info that is associated with you (simulations you own, and any authorizations you may
+ have on other projects).
+ </p>
+ </div>
+ <DeleteProfileModal/>
</div>
- <DeleteProfileModal/>
- </div>
+ </DocumentTitle>
);
const mapDispatchToProps = dispatch => {