diff --git a/src/LexSingleInput.tsx b/src/LexSingleInput.tsx index a434b90..17ed8d6 100644 --- a/src/LexSingleInput.tsx +++ b/src/LexSingleInput.tsx @@ -6,11 +6,6 @@ import { Input, Image } from 'semantic-ui-react'; -import { - SortableContainer, - SortableElement, - arrayMove -} from 'react-sortable-hoc'; class LexSingleInput extends React.Component { public render() { @@ -94,34 +89,12 @@ export function imagePreview(params: any) { ) : textInput(params); } -const SortableItem = SortableElement(({ value }) => -
  • {value}
  • -); - -const SortableList = SortableContainer(({ items }) => { - return ( -
      - {items.map((value: any, index: any) => ( - - ))} -
    - ); -}); - export function listInput(params: any) { let { field, value, changed } = params; - let sortEndHandler = (idxs: any) => { - let { oldIndex, newIndex } = idxs; - arrayMove(value, oldIndex, newIndex); - }; console.log('field: ', field, 'value: ', value); return ( - +
    {JSON.stringify(value)}
    ); }