mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-31 02:26:50 +10:00
Remove unused LabeledField component
This commit is contained in:
parent
072cd23345
commit
d25abdbddd
3 changed files with 0 additions and 41 deletions
|
|
@ -1,9 +0,0 @@
|
||||||
.label {
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
|
|
||||||
/* Title: */
|
|
||||||
font-size: 14px;
|
|
||||||
letter-spacing: 0;
|
|
||||||
line-height: 21px;
|
|
||||||
}
|
|
||||||
|
|
@ -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;
|
|
||||||
|
|
@ -18,7 +18,6 @@ import FilterPanel from './FilterPanel/FilterPanel';
|
||||||
import HeroSection from './HeroSection/HeroSection';
|
import HeroSection from './HeroSection/HeroSection';
|
||||||
import Input from './Input/Input';
|
import Input from './Input/Input';
|
||||||
import InputField from './InputField/InputField';
|
import InputField from './InputField/InputField';
|
||||||
import LabeledField from './LabeledField/LabeledField';
|
|
||||||
import ListingCard from './ListingCard/ListingCard';
|
import ListingCard from './ListingCard/ListingCard';
|
||||||
import ListingCardSmall from './ListingCardSmall/ListingCardSmall';
|
import ListingCardSmall from './ListingCardSmall/ListingCardSmall';
|
||||||
import LocationAutocompleteInput from './LocationAutocompleteInput/LocationAutocompleteInput';
|
import LocationAutocompleteInput from './LocationAutocompleteInput/LocationAutocompleteInput';
|
||||||
|
|
@ -71,7 +70,6 @@ export {
|
||||||
InlineTextButton,
|
InlineTextButton,
|
||||||
Input,
|
Input,
|
||||||
InputField,
|
InputField,
|
||||||
LabeledField,
|
|
||||||
ListingCard,
|
ListingCard,
|
||||||
ListingCardSmall,
|
ListingCardSmall,
|
||||||
LocationAutocompleteInput,
|
LocationAutocompleteInput,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue