From 68f74d5ffd8303e0c2f1a159d87c68defda2f74d Mon Sep 17 00:00:00 2001 From: BryMon Date: Fri, 19 Oct 2018 11:11:42 +0100 Subject: [PATCH] make title a functional component, relates #154 --- src/components/Cases/Title.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Cases/Title.js b/src/components/Cases/Title.js index 97cabf4..53ca44b 100644 --- a/src/components/Cases/Title.js +++ b/src/components/Cases/Title.js @@ -3,11 +3,9 @@ import React from "react"; import PropTypes from "prop-types"; -export default class CasesPageTitle extends React.Component { - render() { - return

{this.props.stationName}

; - } -} +const CasesPageTitle = props =>

{props.stationName}

; + +export default CasesPageTitle; CasesPageTitle.propTypes = { stationName: PropTypes.string