Remove unused code

This commit is contained in:
dominik-zeglen 2020-01-16 15:37:46 +01:00
parent 0d88bd4f4a
commit 6e68c0b4da

View file

@ -436,51 +436,6 @@ const FilterContent: React.FC<FilterContentProps> = ({
setDisplayValues={setAutocompleteDisplayValues}
onFilterPropertyChange={onFilterPropertyChange}
/>
// <MultiAutocompleteSelectField
// displayValues={
// autocompleteDisplayValues[filterField.name]
// }
// label={filterField.label}
// choices={filterField.options}
// name={filterField.name}
// value={filterField.value}
// // helperText={intl.formatMessage({
// // defaultMessage:
// // "*Optional. Adding product to collection helps users find it.",
// // description: "field is optional"
// // })}
// onChange={createMultiAutocompleteSelectHandler(
// event =>
// onFilterPropertyChange({
// payload: {
// name: filterField.name,
// update: {
// value: toggle(
// event.target.value,
// filterField.value,
// (a, b) => a === b
// )
// }
// },
// type: "set-property"
// }),
// value =>
// setAutocompleteDisplayValues({
// ...autocompleteDisplayValues,
// [filterField.name]: toggle(
// value[0],
// autocompleteDisplayValues[filterField.name],
// (a, b) => a.value === b.value
// )
// }),
// [],
// filterField.options
// )}
// fetchChoices={filterField.onSearchChange}
// loading={filterField.loading}
// data-tc={filterField.name}
// key={filterField.name}
// />
)}
</div>
)}