Skip to content

Commit

Permalink
Update all titles when creating new models
Browse files Browse the repository at this point in the history
  • Loading branch information
okcodes committed Oct 16, 2020
1 parent b5f36cd commit 42b716b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const CashAccountFormDialog = ({open, handleClose, item}: Props) => {
return (
<Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title"
TransitionComponent={Transition}>
<DialogTitle id="form-dialog-title">{item.id ? 'Update' : 'Create'} cash account</DialogTitle>
<DialogTitle id="form-dialog-title">{item.id ? 'Update' : 'New'} cash account</DialogTitle>
<DialogContent>
<Grid container justify="space-between">
<FormControl className={classes.formControl}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const TradeOperationFormDialog = ({open, handleClose, dropDownDataForCash
return (
<Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title"
TransitionComponent={Transition}>
<DialogTitle id="form-dialog-title">{model.id ? 'Update' : 'Create'} trade operation</DialogTitle>
<DialogTitle id="form-dialog-title">{model.id ? 'Update' : 'New'} trade operation</DialogTitle>
<DialogContent>

<h2 style={{cursor: 'pointer'}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const TransferOperationFormDialog = ({open, handleClose, dropDownDataForC
return (
<Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title"
TransitionComponent={Transition}>
<DialogTitle id="form-dialog-title">{model.id ? 'Update' : 'Create'} transfer operation</DialogTitle>
<DialogTitle id="form-dialog-title">{model.id ? 'Update' : 'New'} transfer operation</DialogTitle>
<DialogContent>
<FormControl className={classes.formControl}>
<InputLabel id="TransferOperationFromDialog-IssuerCashAccountId-Label">Issuer</InputLabel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const UserSecretFormDialog = ({open, handleClose, dropDownDataForCashAcco
return (
<Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title"
TransitionComponent={Transition}>
<DialogTitle id="form-dialog-title">{model.id ? 'Update' : 'Create'} user secret</DialogTitle>
<DialogTitle id="form-dialog-title">{model.id ? 'Update' : 'New'} user secret</DialogTitle>
<DialogContent>
<TextField
autoFocus
Expand Down

0 comments on commit 42b716b

Please sign in to comment.