:sparkles: Add save button on car cards
Tim Izzo sika.tim@gmail.com
Tue, 07 Jul 2020 17:59:37 +0200
2 files changed,
14 insertions(+),
2 deletions(-)
M
app/src/containers/Car/HeaderEditing.js
→
app/src/containers/Car/HeaderEditing.js
@@ -178,10 +178,18 @@ <div className={classes.actions}>
<Button variant="outlined" color="primary" + onClick={onSave} + id="CarSave" + > + {t('generic.save')} + </Button> + <Button + variant="outlined" + color="primary" onClick={toggleRemoving} id="CarRemove" > - {t('car.actions.remove')} + {t('generic.remove')} </Button> </div> <RemoveDialog@@ -210,8 +218,12 @@ marginTop: theme.spacing(2),
}, actions: { display: 'flex', + flexDirection: 'column', justifyContent: 'center', margin: theme.spacing(2, 0), + '& > *:first-child': { + marginBottom: theme.spacing(2), + }, }, }));
M
app/src/locales/fr.json
→
app/src/locales/fr.json
@@ -5,6 +5,7 @@ "close": "Fermer",
"create": "Créer", "cancel": "Annuler", "remove": "Supprimer", + "save": "Enregistrer", "confirm": "Confirmer" }, "event": {@@ -51,7 +52,6 @@ "notes": "Infos complémentaires",
"created": "La voiture a été créée" }, "actions": { - "remove": "Supprimer la voiture", "remove_alert": "Voulez-vous vraiment supprimer cette voiture et ajouter les inscrits à la liste d'attente ?", "removed": "La voiture a été supprimée" },