Remove unused LabeledField component

This commit is contained in:
Kimmo Puputti 2017-06-16 15:37:37 +03:00
parent 072cd23345
commit d25abdbddd
3 changed files with 0 additions and 41 deletions

View file

@ -1,9 +0,0 @@
.label {
margin-top: 0px;
margin-bottom: 10px;
/* Title: */
font-size: 14px;
letter-spacing: 0;
line-height: 21px;
}

View file

@ -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 (
<div>
<label className={css.label} htmlFor={name}>{label}</label>
<Field name={name} component={Input.fieldComponent} type={type} />
</div>
);
};
LabeledField.defaultProps = {
type: 'input',
};
const { string } = PropTypes;
LabeledField.propTypes = {
label: string.isRequired,
name: string.isRequired,
type: string,
};
export default LabeledField;

View file

@ -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,