From 576d61b0e21f6affcb9f2f80eb62d6296d5981d3 Mon Sep 17 00:00:00 2001 From: Malar Kannan Date: Fri, 21 Jul 2017 17:10:35 +0530 Subject: [PATCH] removed sortable list --- src/LexSingleInput.tsx | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) 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)}
    ); }