mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
inline import csv keypairs
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user