Merge pull request #48 from alDuncanson/feature/favicon-and-titles

Added page titles and modified Favicon.
This commit is contained in:
Alex Duncanson 2018-11-12 11:15:08 -05:00 committed by GitHub
commit 80a73145f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 39 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -3,6 +3,10 @@ import Main from './components/Main';
import './App.css';
class App extends Component {
componentDidMount() {
document.title = 'Marten Tracker';
}
render() {
return (
<div>

View File

@ -6,4 +6,6 @@ import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App/>, document.getElementById('root'));
document.title = "Marten Tracker | Home";
registerServiceWorker();

View File

@ -18,6 +18,10 @@ class Home extends Component {
}))
}
componentDidMount() {
document.title = 'Marten Tracker | Home';
}
render() {
return (
<FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} />

View File

@ -9,21 +9,25 @@ class Info extends Component {
global.schemaName = 'martenSchemaDemo';
this.state = {
schemaDetails: '',
schemaDetails: '',
}
flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] })
.then(result => this.setState({
schemaDetails: result
}))
}
flamelinkApp.schemas.getFields(global.schemaName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] })
.then(result => this.setState({
schemaDetails: result
}))
}
componentDidMount() {
document.title = 'Marten Tracker | Info';
}
render() {
return (
<div>
<Fragment>
<FlameLinkComponentCreations schemaDetails = {this.state.schemaDetails}/>
<FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} />
</Fragment>
</div>

View File

@ -3,6 +3,10 @@ import QuizGame from '../components/QuizGame';
class QuizPage extends Component {
componentDidMount() {
document.title = 'Marten Tracker | Quiz';
}
render() {
return (
<QuizGame difficulty={this.props.difficulty}/>

View File

@ -2,6 +2,10 @@ import React, { Component } from 'react';
import ReportForm from '../components/ReportForm';
class Report extends Component {
componentDidMount() {
document.title = 'Marten Tracker | Report';
}
render() {
return (
<ReportForm/>

View File

@ -2,6 +2,10 @@ import React, { Component } from 'react';
import ViewSightings from '../components/ViewSightings.js';
class Sighting extends Component {
componentDidMount() {
document.title = 'Marten Tracker | List';
}
render() {
return (
<ViewSightings/>

View File

@ -2,6 +2,10 @@ import React, { Component } from 'react';
import GoogleMap from '../components/SightingMap';
class Sighting extends Component {
componentDidMount() {
document.title = 'Marten Tracker | Map';
}
render() {
return (
<div className='sighting-map'>