Skip to content

Commit 6a59cec

Browse files
committed
Linting pass
1 parent 4e72d12 commit 6a59cec

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

src/analytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ReactGA from 'react-ga'
22

33
ReactGA.initialize('UA-72102716-3', {
44
titleCase: false
5-
});
5+
})
66

77
function sendEvent (event) {
88
if (process.env.NODE_ENV !== 'production') {

src/components/Information.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ export default class Information extends React.Component {
3535
What do these look like as printed objects?
3636
</Header>
3737
<Lightbox
38-
images={[
39-
{ src: '/img/trophy_examples/DSC_0608.jpg' },
40-
{ src: '/img/trophy_examples/DSC_0609.jpg',
41-
caption: 'Box of floss, for scale' }
42-
]}
43-
preloadNextImage
44-
currentImage={this.state.currentImage}
45-
onClickPrev={() => {this.setState({currentImage: this.state.currentImage - 1})}}
46-
onClickNext={() => {this.setState({currentImage: this.state.currentImage + 1})}}
47-
onClose={this.closeLightbox}
48-
isOpen={this.state.lightboxOpen}
49-
/>
50-
<p><a href="#" onClick={this.openLightbox}>Here's how mine turned out.</a></p>
38+
images={[
39+
{ src: '/img/trophy_examples/DSC_0608.jpg' },
40+
{ src: '/img/trophy_examples/DSC_0609.jpg',
41+
caption: 'Box of floss, for scale' }
42+
]}
43+
preloadNextImage
44+
currentImage={this.state.currentImage}
45+
onClickPrev={() => { this.setState({currentImage: this.state.currentImage - 1}) }}
46+
onClickNext={() => { this.setState({currentImage: this.state.currentImage + 1}) }}
47+
onClose={this.closeLightbox}
48+
isOpen={this.state.lightboxOpen}
49+
/>
50+
<p><a href='#' onClick={this.openLightbox}>Here's how mine turned out.</a></p>
5151

5252
<Header>
5353
How do I get my Git Trophy printed?
@@ -77,7 +77,7 @@ export default class Information extends React.Component {
7777
</Header>
7878
<p><strong>Frontend:</strong> The app uses <a href='https://facebook.github.io/react/'>React</a> and <a href='https://threejs.org/'>Three.js</a> to generate and render the models.</p>
7979
<p><strong>Backend:</strong> The site uses a <a href='https://aws.amazon.com/lambda/'>AWS Lambda</a> serverless backend (managed by <a href='https://github.com/Miserlou/Zappa/'>Zappa</a>) to scrape and serve Github contribution data.</p>
80-
<p>For more information, check out the <a href="http://benjamincongdon.me/blog/2017/08/11/Building-GitTrophy/">blog post</a> I wrote about building GitTrophy.</p>
80+
<p>For more information, check out the <a href='http://benjamincongdon.me/blog/2017/08/11/Building-GitTrophy/'>blog post</a> I wrote about building GitTrophy.</p>
8181

8282
<p>All of the code for this project is open-source. Feel free to check out the <a href='https://github.com/bcongdon/git-trophy'>git-trophy</a> repo (and leave a ⭐, if you're so inclined. 😉)</p>
8383

src/components/Navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Navbar = () => (
77
<img
88
style={{height: 24, width: 'auto', paddingRight: 8}}
99
src='/img/trophy.png'
10-
/>
10+
/>
1111
Git Trophy
1212
</Menu.Item>
1313
</Menu>

src/containers/PreviewContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class PreviewContainer extends React.Component {
3737
size='small'
3838
inline />
3939
)
40-
40+
4141
const loadingMessageStyle = {
4242
fontSize: 12,
4343
fontWeight: 'normal',
@@ -83,7 +83,7 @@ export class PreviewContainer extends React.Component {
8383
if (this.props.loadingContributions) {
8484
// Display a "patience" message after waiting 3 seconds
8585
setTimeout(() => {
86-
if(!this.state.stillLoading && this.props.year === currYear && this.props.entity === currEntity) {
86+
if (!this.state.stillLoading && this.props.year === currYear && this.props.entity === currEntity) {
8787
this.setState({ stillLoading: true })
8888
}
8989
}, 3000)

src/oauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const config = {
22
url: 'https://api.shapeways.com/oauth2/authorize',
33
client: 'CddemRQQc1QYAkC8s2KNA0YPyl6GAYaVjWZDLIflz5wQTuESeG',
4-
redirect: window.location.protocol + "//" + window.location.host,
4+
redirect: window.location.protocol + '//' + window.location.host,
55
scope: '',
66
width: 800,
77
height: 600

0 commit comments

Comments
 (0)