renaming *rank to *
This commit is contained in:
1 parent
14c8f8a915
commit
afce89bb45
4 files changed
+16
-16
No files matched your search
@@ -21,7 +21,7 @@ const SortableItem = SortableElement(({ value, deletePrize, index }) => (
|
||||
<Grid item xs={12} sm container>
|
||||
<Grid item xs container direction="column" spacing={16}>
|
||||
<Typography gutterBottom variant="subtitle1">
|
||||
{value.fromRank}{value.toRank}{value.additional}{value.amount}{value.asset}
|
||||
{value.from}{value.to}{value.additional}{value.amount}{value.asset}
|
||||
</Typography>
|
||||
<Typography color="textSecondary">
|
||||
</Typography>
|
||||
|
||||
@@ -20,7 +20,7 @@ class New extends React.Component {
|
||||
|
||||
render() {
|
||||
const {
|
||||
fromRank, toRank, additional, amount, asset,
|
||||
from, to, additional, amount, asset,
|
||||
} = this.state;
|
||||
const { addPrize, closeDialogs } = this.props;
|
||||
return (
|
||||
@@ -37,8 +37,8 @@ class New extends React.Component {
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
addPrize({
|
||||
fromRank,
|
||||
toRank,
|
||||
from,
|
||||
to,
|
||||
additional,
|
||||
amount,
|
||||
asset,
|
||||
@@ -61,14 +61,14 @@ class New extends React.Component {
|
||||
|
||||
<TextField
|
||||
label='From rank'
|
||||
value={fromRank}
|
||||
onChange={e => this.setState({ fromRank: e.target.value })}
|
||||
value={from}
|
||||
onChange={e => this.setState({ from: e.target.value })}
|
||||
type="number"
|
||||
/>
|
||||
<TextField
|
||||
label='To rank'
|
||||
value={toRank}
|
||||
onChange={e => this.setState({ toRank: e.target.value })}
|
||||
value={to}
|
||||
onChange={e => this.setState({ to: e.target.value })}
|
||||
type="number"
|
||||
/>
|
||||
<TextField
|
||||
|
||||
@@ -21,7 +21,7 @@ const SortableItem = SortableElement(({ value, deletePrize, index }) => (
|
||||
<Grid item xs={12} sm container>
|
||||
<Grid item xs container direction="column" spacing={16}>
|
||||
<Typography gutterBottom variant="subtitle1">
|
||||
{value.fromRank}{value.toRank}{value.additional}{value.amount}{value.asset}
|
||||
{value.from}{value.to}{value.additional}{value.amount}{value.asset}
|
||||
</Typography>
|
||||
<Typography color="textSecondary">
|
||||
</Typography>
|
||||
|
||||
@@ -20,7 +20,7 @@ class New extends React.Component {
|
||||
|
||||
render() {
|
||||
const {
|
||||
fromRank, toRank, additional, amount, asset,
|
||||
from, to, additional, amount, asset,
|
||||
} = this.state;
|
||||
const { addPrize, closeDialogs } = this.props;
|
||||
return (
|
||||
@@ -37,8 +37,8 @@ class New extends React.Component {
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
addPrize({
|
||||
fromRank,
|
||||
toRank,
|
||||
from,
|
||||
to,
|
||||
additional,
|
||||
amount,
|
||||
asset,
|
||||
@@ -61,14 +61,14 @@ class New extends React.Component {
|
||||
|
||||
<TextField
|
||||
label='From rank'
|
||||
value={fromRank}
|
||||
onChange={e => this.setState({ fromRank: e.target.value })}
|
||||
value={from}
|
||||
onChange={e => this.setState({ from: e.target.value })}
|
||||
type="number"
|
||||
/>
|
||||
<TextField
|
||||
label='To rank'
|
||||
value={toRank}
|
||||
onChange={e => this.setState({ toRank: e.target.value })}
|
||||
value={to}
|
||||
onChange={e => this.setState({ to: e.target.value })}
|
||||
type="number"
|
||||
/>
|
||||
<TextField
|
||||
|
||||
Reference in new issue
Block a user