Merge pull request #48 from alDuncanson/feature/favicon-and-titles
Added page titles and modified Favicon.
This commit is contained in:
commit
80a73145f7
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 21 KiB |
|
@ -3,6 +3,10 @@ import Main from './components/Main';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -6,4 +6,6 @@ import registerServiceWorker from './registerServiceWorker';
|
||||||
|
|
||||||
ReactDOM.render(<App/>, document.getElementById('root'));
|
ReactDOM.render(<App/>, document.getElementById('root'));
|
||||||
|
|
||||||
|
document.title = "Marten Tracker | Home";
|
||||||
|
|
||||||
registerServiceWorker();
|
registerServiceWorker();
|
||||||
|
|
|
@ -18,6 +18,10 @@ class Home extends Component {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker | Home';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} />
|
<FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} />
|
||||||
|
|
|
@ -12,18 +12,22 @@ class Info extends Component {
|
||||||
schemaDetails: '',
|
schemaDetails: '',
|
||||||
}
|
}
|
||||||
|
|
||||||
flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] })
|
flamelinkApp.schemas.getFields(global.schemaName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] })
|
||||||
.then(result => this.setState({
|
.then(result => this.setState({
|
||||||
schemaDetails: result
|
schemaDetails: result
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker | Info';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<FlameLinkComponentCreations schemaDetails = {this.state.schemaDetails}/>
|
<FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,10 @@ import QuizGame from '../components/QuizGame';
|
||||||
|
|
||||||
|
|
||||||
class QuizPage extends Component {
|
class QuizPage extends Component {
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker | Quiz';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<QuizGame difficulty={this.props.difficulty}/>
|
<QuizGame difficulty={this.props.difficulty}/>
|
||||||
|
|
|
@ -2,6 +2,10 @@ import React, { Component } from 'react';
|
||||||
import ReportForm from '../components/ReportForm';
|
import ReportForm from '../components/ReportForm';
|
||||||
|
|
||||||
class Report extends Component {
|
class Report extends Component {
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker | Report';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<ReportForm/>
|
<ReportForm/>
|
||||||
|
|
|
@ -2,6 +2,10 @@ import React, { Component } from 'react';
|
||||||
import ViewSightings from '../components/ViewSightings.js';
|
import ViewSightings from '../components/ViewSightings.js';
|
||||||
|
|
||||||
class Sighting extends Component {
|
class Sighting extends Component {
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker | List';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<ViewSightings/>
|
<ViewSightings/>
|
||||||
|
|
|
@ -2,6 +2,10 @@ import React, { Component } from 'react';
|
||||||
import GoogleMap from '../components/SightingMap';
|
import GoogleMap from '../components/SightingMap';
|
||||||
|
|
||||||
class Sighting extends Component {
|
class Sighting extends Component {
|
||||||
|
componentDidMount() {
|
||||||
|
document.title = 'Marten Tracker | Map';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className='sighting-map'>
|
<div className='sighting-map'>
|
||||||
|
|
Loading…
Reference in New Issue