From d25abdbdddd70df98d4938262b545cbe71cc2c8d Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Fri, 16 Jun 2017 15:37:37 +0300 Subject: [PATCH] Remove unused LabeledField component --- src/components/LabeledField/LabeledField.css | 9 ------ src/components/LabeledField/LabeledField.js | 30 -------------------- src/components/index.js | 2 -- 3 files changed, 41 deletions(-) delete mode 100644 src/components/LabeledField/LabeledField.css delete mode 100644 src/components/LabeledField/LabeledField.js diff --git a/src/components/LabeledField/LabeledField.css b/src/components/LabeledField/LabeledField.css deleted file mode 100644 index 27073f20..00000000 --- a/src/components/LabeledField/LabeledField.css +++ /dev/null @@ -1,9 +0,0 @@ -.label { - margin-top: 0px; - margin-bottom: 10px; - - /* Title: */ - font-size: 14px; - letter-spacing: 0; - line-height: 21px; -} diff --git a/src/components/LabeledField/LabeledField.js b/src/components/LabeledField/LabeledField.js deleted file mode 100644 index 85c5fbd2..00000000 --- a/src/components/LabeledField/LabeledField.js +++ /dev/null @@ -1,30 +0,0 @@ -import React, { PropTypes } from 'react'; -import { Field } from 'redux-form'; -import { Input } from '../../components'; - -import css from './LabeledField.css'; - -const LabeledField = props => { - const { label, name, type } = props; - - return ( -
- - -
- ); -}; - -LabeledField.defaultProps = { - type: 'input', -}; - -const { string } = PropTypes; - -LabeledField.propTypes = { - label: string.isRequired, - name: string.isRequired, - type: string, -}; - -export default LabeledField; diff --git a/src/components/index.js b/src/components/index.js index 53132a3c..0fd67ae8 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -18,7 +18,6 @@ import FilterPanel from './FilterPanel/FilterPanel'; import HeroSection from './HeroSection/HeroSection'; import Input from './Input/Input'; import InputField from './InputField/InputField'; -import LabeledField from './LabeledField/LabeledField'; import ListingCard from './ListingCard/ListingCard'; import ListingCardSmall from './ListingCardSmall/ListingCardSmall'; import LocationAutocompleteInput from './LocationAutocompleteInput/LocationAutocompleteInput'; @@ -71,7 +70,6 @@ export { InlineTextButton, Input, InputField, - LabeledField, ListingCard, ListingCardSmall, LocationAutocompleteInput,