diff --git a/package-lock.json b/package-lock.json
index ab6693c..88e437f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5656,7 +5656,7 @@
},
"core-js": {
"version": "2.5.5",
- "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz",
+ "resolved": "http://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz",
"integrity": "sha1-sU3ek2xkDAV5prUMq8wTLdYSfjs="
},
"firebase": {
diff --git a/src/components/FlameLinkCollectionGallery.js b/src/components/FlameLinkCollectionGallery.js
index 00db9fb..77860ea 100644
--- a/src/components/FlameLinkCollectionGallery.js
+++ b/src/components/FlameLinkCollectionGallery.js
@@ -27,6 +27,23 @@ const styles = theme => ({
});
class FlameLinkCollectionGallery extends Component {
+ getPageTitle = galleryName => {
+ switch (galleryName) {
+ case 'martensAndKits':
+ document.title = 'Marten Tracker | Martens and Kits';
+ break;
+ case 'martensAtNight':
+ document.title = 'Marten Tracker | Martens at Night';
+ break;
+ case 'martensBeingMartens':
+ document.title = 'Marten Tracker | Martens Being Martens';
+ break;
+ default:
+ document.title = 'Marten Tracker | Galleries';
+ break;
+ }
+ }
+
constructor(props) {
super(props);
@@ -53,13 +70,15 @@ class FlameLinkCollectionGallery extends Component {
schemaDescription: result.title
}))
}
+
+ this.getPageTitle(this.props.galleryName);
}
getGalleryInfo(schemaDetails, schemaContent) {
var key;
var mediaNums = [];
var mediaIDs = [];
-
+
for (var val in schemaDetails) {
key = schemaDetails[val].key
}
@@ -71,15 +90,15 @@ class FlameLinkCollectionGallery extends Component {
for (var val3 in mediaIDs) {
mediaNums.push(val3)
}
-
+
return mediaNums.map(this.createGallery, mediaIDs);
}
- createGallery (num) {
- if(num === '0'){
- global.galleryImages = [];
+ createGallery(num) {
+ if (num === '0') {
+ global.galleryImages = [];
}
- return
+ return ;
}
render() {
@@ -93,7 +112,7 @@ class FlameLinkCollectionGallery extends Component {
-
+
diff --git a/src/pages/About.js b/src/pages/About.js
index 1b57406..9b46421 100644
--- a/src/pages/About.js
+++ b/src/pages/About.js
@@ -24,6 +24,10 @@ class About extends Component {
}))
}
+ componentDidMount() {
+ document.title = 'Marten Tracker | About';
+ }
+
render() {
return (