inline import csv keypairs

This commit is contained in:
shams mosowi
2019-10-03 12:41:55 +10:00
parent 12b0424e25
commit a4c2a1d160
2 changed files with 14 additions and 5 deletions

View File

@@ -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) {
<CloudIcon className={classes.cloudIcon} />
<Typography variant="subtitle1">or</Typography>
<Button color="secondary">click to select a file</Button>
{isDragActive ? (
<p>Drop the file here ...</p>
) : (
<Button color="secondary">click to select a file</Button>
)}
</Grid>
</div>
) : (
<Grid container direction="column">
{keyPairs.map((keyPair: any, index: number) => (
<Grid item alignItems="center">
<Grid
container
direction="row"
alignItems="center"
justify="space-between"
>
<Typography>{keyPair.csvKey}</Typography>
<ArrowIcon />
<Typography>{keyPair.columnKey}</Typography>

View File

@@ -192,7 +192,7 @@ function Table(props: Props) {
<Confirmation
message={{
title: "Delete Row",
body: "Are you sure you want do delete this row",
body: "Are you sure you want to delete this row",
confirm: (
<>
<DeleteIcon /> Delete