Added Typography to SightingDetail
This commit is contained in:
parent
0dd7ce50d2
commit
7815c18dee
|
@ -2,6 +2,12 @@ import React, { Component, Fragment } from 'react';
|
||||||
import Disqus from 'disqus-react';
|
import Disqus from 'disqus-react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import SightingDetailMap from './SightingDetailMap';
|
import SightingDetailMap from './SightingDetailMap';
|
||||||
|
import Typography from '@material-ui/core/Typography';
|
||||||
|
import { withStyles } from '@material-ui/core/styles';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
|
const styles = theme => ({
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Types of sightings. Label is what is
|
* Types of sightings. Label is what is
|
||||||
|
@ -143,6 +149,7 @@ class SightingDetail extends Component {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<SightingDetailMap lat={this.props.detail.lat} lng={this.props.detail.lng} />
|
<SightingDetailMap lat={this.props.detail.lat} lng={this.props.detail.lng} />
|
||||||
|
<Typography component="div">
|
||||||
<div className='sighting-details-content'>
|
<div className='sighting-details-content'>
|
||||||
<p><b>Type:</b> {this.getType(this.props.detail.type)}</p>
|
<p><b>Type:</b> {this.getType(this.props.detail.type)}</p>
|
||||||
<p><b>When:</b> {this.formatDate(this.props.detail.date)}, {this.getTime(this.props.detail.time)}</p>
|
<p><b>When:</b> {this.formatDate(this.props.detail.date)}, {this.getTime(this.props.detail.time)}</p>
|
||||||
|
@ -152,9 +159,14 @@ class SightingDetail extends Component {
|
||||||
<p>{`${this.props.detail.desc}`}</p>
|
<p>{`${this.props.detail.desc}`}</p>
|
||||||
</div>
|
</div>
|
||||||
<Disqus.DiscussionEmbed shortname={disqusShortname} config={disqusConfig} />
|
<Disqus.DiscussionEmbed shortname={disqusShortname} config={disqusConfig} />
|
||||||
|
</Typography>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SightingDetail;
|
SightingDetail.propTypes = {
|
||||||
|
classes: PropTypes.object.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default withStyles(styles)(SightingDetail);
|
Loading…
Reference in New Issue