From a4c2a1d160d2ff87cec4d28b534fad1a02602c44 Mon Sep 17 00:00:00 2001 From: shams mosowi Date: Thu, 3 Oct 2019 12:41:55 +1000 Subject: [PATCH] inline import csv keypairs --- src/components/ImportCSV.tsx | 17 +++++++++++++---- src/components/Table/index.tsx | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/ImportCSV.tsx b/src/components/ImportCSV.tsx index 4a156d6c..268cc3c7 100644 --- a/src/components/ImportCSV.tsx +++ b/src/components/ImportCSV.tsx @@ -39,9 +39,9 @@ const useStyles = makeStyles(theme => marginTop: theme.spacing(2), }, keyPair: { + flexGrow: 2, display: "flex", - flexWrap: "wrap", - justifyContent: "space-between", + justifyItems: "space-between", }, cloudIcon: { fontSize: 64, @@ -132,13 +132,22 @@ export default function ImportCSV(props: any) { or - + {isDragActive ? ( +

Drop the file here ...

+ ) : ( + + )} ) : ( {keyPairs.map((keyPair: any, index: number) => ( - + {keyPair.csvKey} {keyPair.columnKey} diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index 9f877cc7..579ad7ef 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -192,7 +192,7 @@ function Table(props: Props) { Delete