Skip to content

Commit 4329ca5

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 8a83a1f + 30c2a99 commit 4329ca5

File tree

17 files changed

+899
-993
lines changed

17 files changed

+899
-993
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
node_modules/*
22

33
packages/client/node_modules/*
4-
packages/client/src/*
54

65
packages/server/node_modules/*
7-
packages/server/src/*

packages/client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client/src/patterns/atoms/map/Marker/Marker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import './Marker.scss'
22
import React from 'react'
33
import cx from 'classnames'
4-
import {string, bool} from 'prop-types'
4+
import { string, bool } from 'prop-types'
55

66
const markerPosition = {
77
position: 'absolute',
88
width: 46,
99
height: 59,
1010
left: -46 / 2,
11-
top: -59
11+
top: -59,
1212
}
1313

1414
const Marker = ({ text, active, label }) => (
@@ -29,13 +29,13 @@ const Marker = ({ text, active, label }) => (
2929
Marker.propTypes = {
3030
text: string,
3131
label: bool,
32-
active: bool
32+
active: bool,
3333
}
3434

3535
Marker.defaultProps = {
3636
text: '',
3737
label: false,
38-
active: false
38+
active: false,
3939
}
4040

4141
export default Marker

packages/client/src/patterns/molecules/banner/HeroBanner.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
2-
import { string, node } from 'prop-types'
2+
import { node } from 'prop-types'
33

4-
const HeroBanner = ({ className, children }) => (
4+
const HeroBanner = ({ children }) => (
55
<div className="md-order-1 d-flex flex-lg-column flex-auto flex-wrap">
66
<div className="flex-row width-full bg-blue py-3 py-lg-6">
77
<div className="main-content mx-auto py-4 px-3 px-md-6 px-lg-3 text-white">
@@ -10,17 +10,15 @@ const HeroBanner = ({ className, children }) => (
1010
</div>
1111
</div>
1212
</div>
13-
<div className="flex-row main-content my-6 mx-auto px-3 px-md-6 px-lg-3"></div>
13+
<div className="flex-row main-content my-6 mx-auto px-3 px-md-6 px-lg-3" />
1414
</div>
1515
)
1616

1717
HeroBanner.defaultProps = {
18-
className: '',
1918
children: null,
2019
}
2120

2221
HeroBanner.propTypes = {
23-
className: string,
2422
children: node,
2523
}
2624

packages/client/src/patterns/molecules/map/Map.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
/* eslint-disable */
12
import React from 'react'
23
import { arrayOf, shape, number, string } from 'prop-types'
34
import GoogleMapReact from 'google-map-react'
4-
import Marker from '../../atoms/map/Marker'
5-
import list from '../../../data/stations.js'
65
import { fitBounds } from 'google-map-react/utils'
6+
import Marker from '../../atoms/map/Marker'
7+
import list from '../../../data/stations'
78

89
const K_MARGIN_TOP = 60
910
const K_MARGIN_RIGHT = 30
@@ -235,3 +236,4 @@ Map.defaultProps = {
235236
}
236237

237238
export default Map
239+
/* eslint-enable */

packages/client/src/patterns/molecules/navigation/Header.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import React from 'react'
2-
import { string, node } from 'prop-types'
2+
import { node } from 'prop-types'
33

44
const style = {
5-
'position': '-webkit-sticky',
65
'position': 'sticky',
76
'top': 0,
87
'left': 0,
98
'right': 0,
10-
'zIndex': 101
9+
'zIndex': 101,
1110
}
1211

13-
const Header = ({ className, children }) => (
12+
const Header = ({ children }) => (
1413
<div className="bg-gray-dark" style={style}>
1514
<div className="main-nav d-flex flex-justify-between px-3 pl-md-4 pr-md-4 py-3 box-shadow bg-gray-dark Details js-details-container">
1615
<div className="d-flex flex-self-center flex-lg-auto mr-lg-2">
@@ -29,12 +28,10 @@ const Header = ({ className, children }) => (
2928
)
3029

3130
Header.defaultProps = {
32-
className: '',
3331
children: null,
3432
}
3533

3634
Header.propTypes = {
37-
className: string,
3835
children: node,
3936
}
4037

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from 'react'
2-
import { string, node } from 'prop-types'
32
import { Link } from 'react-router-dom'
43
import { demoPageRoute } from '../../../routes'
54

6-
const SideBar = ({ className, children }) => (
5+
const SideBar = () => (
76
<nav id="navigation" className="sidebar flex-column flex-justify-start overflow-auto border-right bg-gray-light pb-4" data-pjax="">
87
<ul className="list-style-none">
98
<li className="px-4 my-4">
@@ -16,28 +15,25 @@ const SideBar = ({ className, children }) => (
1615
Transport
1716
<span className="position-absolute right-0">
1817
<span className="text-green tooltipped tooltipped-nw" aria-label="New release">
19-
<svg height="18" className="octicon octicon-primitive-dot v-align-text-top" viewBox="0 0 8 16" version="1.1" width="9" aria-hidden="true">
20-
<path fillRule="evenodd" d="M0 8c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.8-4-4z"></path>
18+
<svg
19+
height="18" className="octicon octicon-primitive-dot v-align-text-top" viewBox="0 0 8 16" version="1.1"
20+
width="9" aria-hidden="true"
21+
>
22+
<path fillRule="evenodd" d="M0 8c0-2.2 1.8-4 4-4s4 1.8 4 4-1.8 4-4 4-4-1.8-4-4z" />
2123
</svg>
2224
</span>
2325
</span>
2426
</Link>
2527
</li>
2628
</ul>
2729
</li>
28-
<li className="mt-4 border-bottom"></li>
30+
<li className="mt-4 border-bottom" />
2931
</ul>
3032
</nav>
3133
)
3234

33-
SideBar.defaultProps = {
34-
className: '',
35-
children: null,
36-
}
35+
SideBar.defaultProps = {}
3736

38-
SideBar.propTypes = {
39-
className: string,
40-
children: node,
41-
}
37+
SideBar.propTypes = {}
4238

4339
export default SideBar

packages/server/.babelrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/server/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)