Skip to content

Commit

Permalink
feat(ZNTA-1737): remove redundant search text field
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Apr 24, 2017
1 parent b69fb9b commit 5a8143c
Showing 1 changed file with 2 additions and 9 deletions.
Expand Up @@ -106,14 +106,7 @@ const EditorSearchInput = React.createClass({
},

render: function () {
// TODO get the values from props.search

const fields = {
// TODO rename placeholder to description
text: {
label: 'Text',
description: 'source and target text',
},
resourceId: {
label: 'Resource ID',
description: 'exact Resource ID for a string'
Expand Down Expand Up @@ -144,7 +137,7 @@ const EditorSearchInput = React.createClass({
},
}

const items = map(fields, (value, key) => (
const advancedFields = map(fields, (value, key) => (
<li key={key} className="inline-search-list" title={value.description}>
{value.label + ':'}
<div
Expand Down Expand Up @@ -187,7 +180,7 @@ const EditorSearchInput = React.createClass({
</div>
<Panel collapsible expanded={this.state.focused}>
<ul>
{items}
{advancedFields}
</ul>
</Panel>
</div>
Expand Down

0 comments on commit 5a8143c

Please sign in to comment.