diff --git a/app/component/CardHeader.js b/app/component/CardHeader.js index 3f8538c9b6..229634b1f9 100644 --- a/app/component/CardHeader.js +++ b/app/component/CardHeader.js @@ -1,12 +1,10 @@ import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; -import { FormattedMessage } from 'react-intl'; import ComponentUsageExample from './ComponentUsageExample'; import Icon from './Icon'; import SplitBars from './SplitBars'; import Favourite from './Favourite'; -import { getCityBikeNetworkName } from '../util/citybikes'; const CardHeader = ({ className, @@ -19,7 +17,6 @@ const CardHeader = ({ icon, icons, unlinked, - network, }) => (
-
{code}
: null} {description != null && description !== 'null' ? ({description}
@@ -99,7 +88,6 @@ CardHeader.propTypes = { icons: PropTypes.arrayOf(PropTypes.node), children: PropTypes.node, unlinked: PropTypes.bool, - network: PropTypes.string, }; CardHeader.defaultProps = { diff --git a/app/component/CityBikeCard.js b/app/component/CityBikeCard.js index f69608ef7f..55472cfd87 100644 --- a/app/component/CityBikeCard.js +++ b/app/component/CityBikeCard.js @@ -5,10 +5,7 @@ import CardHeader from './CardHeader'; import { station as exampleStation } from './ExampleData'; import ComponentUsageExample from './ComponentUsageExample'; import Card from './Card'; -import { - getCityBikeNetworkIcon, - getCityBikeNetworkName, -} from '../util/citybikes'; +import { getCityBikeNetworkIcon } from '../util/citybikes'; const CityBikeCard = ({ station, children, className }, { config }) => { if (!station || !children || children.length === 0) { @@ -18,10 +15,9 @@ const CityBikeCard = ({ station, children, className }, { config }) => { return (