Skip to content

Commit

Permalink
Fix indentation to use tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
InnaBoitsun committed Sep 7, 2017
1 parent 920553a commit 28fe1d6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions Website/Composite/console/components/presentation/DataField.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,42 +39,42 @@ const DataField = props => {
options = props.options.toJS();
defaultOption = options.filter(option => option.value === props.value)[0];
inputElement = <Select
id={props.name}
value={defaultOption}
clearable={false}
multi={false}
options={options}
onChange={handleChange}
placeholder={props.placeholder}>
</Select>;
break;
case 'textarea':
inputElement = <TextArea
{...props}
withHelp={props.help ? true : false} />;
break;
id={props.name}
value={defaultOption}
clearable={false}
multi={false}
options={options}
onChange={handleChange}
placeholder={props.placeholder}>
</Select>;
break;
case 'textarea':
inputElement = <TextArea
{...props}
withHelp={props.help ? true : false} />;
break;
default:
inputElement = <Input
{...props}
inputElement = <Input
{...props}
onContextMenu={event => {
event.stopPropagation(); // to ensure default context menu is shown here
}}
withHelp={props.help ? true : false}
/>;
}}
withHelp={props.help ? true : false}
/>;
}

return (
<DataFieldWrapper>
{
{
// props.headline ?
// <Headline>{props.headline}</Headline> :
// null
}
// null
}

{props.label ?
<DataFieldLabel htmlFor={props.name}>{props.label}</DataFieldLabel> :
null}
{inputElement}
<DataFieldLabel htmlFor={props.name}>{props.label}</DataFieldLabel> :
null}
{inputElement}
{props.help ? <HelpIcon text={props.help} /> : null}
</DataFieldWrapper>
);
Expand All @@ -83,7 +83,7 @@ const DataField = props => {
DataField.propTypes = {
type: PropTypes.string,
options: ImmutablePropTypes.listOf(ImmutablePropTypes.map),
updateValue: PropTypes.func,
updateValue: PropTypes.func,
name: PropTypes.string.isRequired,
headline: PropTypes.string,
label: PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styled from 'styled-components';
const DataFieldWrapper = styled.div`
position: relative;
margin-bottom: 4px;
&::after {
display: block;
content: "";
Expand Down

0 comments on commit 28fe1d6

Please sign in to comment.