mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-11 00:56:45 +00:00
remove unused vars, fix eslint errors, add initial value for owners name when editing
This commit is contained in:
parent
23903ba708
commit
8e8cd13674
@ -1,11 +1,11 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import ChevronLeft from '@material-ui/icons/ChevronLeft'
|
import ChevronLeft from '@material-ui/icons/ChevronLeft'
|
||||||
|
import IconButton from '@material-ui/core/IconButton'
|
||||||
import Stepper from '~/components/Stepper'
|
import Stepper from '~/components/Stepper'
|
||||||
import Block from '~/components/layout/Block'
|
import Block from '~/components/layout/Block'
|
||||||
import Heading from '~/components/layout/Heading'
|
import Heading from '~/components/layout/Heading'
|
||||||
import Row from '~/components/layout/Row'
|
import Row from '~/components/layout/Row'
|
||||||
import IconButton from '@material-ui/core/IconButton'
|
|
||||||
import ReviewInformation from '~/routes/load/components/ReviewInformation'
|
import ReviewInformation from '~/routes/load/components/ReviewInformation'
|
||||||
import OwnerList from '~/routes/load/components/OwnerList'
|
import OwnerList from '~/routes/load/components/OwnerList'
|
||||||
import DetailsForm, { safeFieldsValidation } from '~/routes/load/components/DetailsForm'
|
import DetailsForm, { safeFieldsValidation } from '~/routes/load/components/DetailsForm'
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { connect } from 'react-redux'
|
|
||||||
import { List } from 'immutable'
|
import { List } from 'immutable'
|
||||||
import { withStyles } from '@material-ui/core/styles'
|
import { withStyles } from '@material-ui/core/styles'
|
||||||
|
import Close from '@material-ui/icons/Close'
|
||||||
import OpenInNew from '@material-ui/icons/OpenInNew'
|
import OpenInNew from '@material-ui/icons/OpenInNew'
|
||||||
|
import IconButton from '@material-ui/core/IconButton'
|
||||||
import Row from '~/components/layout/Row'
|
import Row from '~/components/layout/Row'
|
||||||
import Col from '~/components/layout/Col'
|
|
||||||
import Link from '~/components/layout/Link'
|
import Link from '~/components/layout/Link'
|
||||||
import Block from '~/components/layout/Block'
|
import Block from '~/components/layout/Block'
|
||||||
import GnoForm from '~/components/forms/GnoForm'
|
import GnoForm from '~/components/forms/GnoForm'
|
||||||
@ -15,8 +15,6 @@ import Field from '~/components/forms/Field'
|
|||||||
import TextField from '~/components/forms/TextField'
|
import TextField from '~/components/forms/TextField'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import Identicon from '~/components/Identicon'
|
import Identicon from '~/components/Identicon'
|
||||||
import IconButton from '@material-ui/core/IconButton'
|
|
||||||
import Close from '@material-ui/icons/Close'
|
|
||||||
import { getEtherScanLink } from '~/logic/wallets/getWeb3'
|
import { getEtherScanLink } from '~/logic/wallets/getWeb3'
|
||||||
import type { Owner } from '~/routes/safe/store/models/owner'
|
import type { Owner } from '~/routes/safe/store/models/owner'
|
||||||
import { makeOwner } from '~/routes/safe/store/models/owner'
|
import { makeOwner } from '~/routes/safe/store/models/owner'
|
||||||
@ -50,6 +48,7 @@ type Props = {
|
|||||||
ownerAddress: string,
|
ownerAddress: string,
|
||||||
owners: List<Owner>,
|
owners: List<Owner>,
|
||||||
network: string,
|
network: string,
|
||||||
|
selectedOwnerName: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
const EditOwnerComponent = ({
|
const EditOwnerComponent = ({
|
||||||
@ -58,6 +57,7 @@ const EditOwnerComponent = ({
|
|||||||
classes,
|
classes,
|
||||||
safeAddress,
|
safeAddress,
|
||||||
ownerAddress,
|
ownerAddress,
|
||||||
|
selectedOwnerName,
|
||||||
owners,
|
owners,
|
||||||
network,
|
network,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
@ -87,7 +87,7 @@ const EditOwnerComponent = ({
|
|||||||
</Row>
|
</Row>
|
||||||
<Hairline />
|
<Hairline />
|
||||||
<GnoForm onSubmit={handleSubmit}>
|
<GnoForm onSubmit={handleSubmit}>
|
||||||
{(...args) => (
|
{() => (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Block className={classes.container}>
|
<Block className={classes.container}>
|
||||||
<Row margin="md">
|
<Row margin="md">
|
||||||
@ -98,6 +98,7 @@ const EditOwnerComponent = ({
|
|||||||
validate={composeValidators(required, minMaxLength(1, 50))}
|
validate={composeValidators(required, minMaxLength(1, 50))}
|
||||||
placeholder="Owner name*"
|
placeholder="Owner name*"
|
||||||
text="Owner name*"
|
text="Owner name*"
|
||||||
|
initialValue={selectedOwnerName}
|
||||||
className={classes.addressInput}
|
className={classes.addressInput}
|
||||||
/>
|
/>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -203,6 +203,7 @@ class ManageOwners extends React.Component<Props, State> {
|
|||||||
isOpen={showEditOwner}
|
isOpen={showEditOwner}
|
||||||
safeAddress={safeAddress}
|
safeAddress={safeAddress}
|
||||||
ownerAddress={selectedOwnerAddress}
|
ownerAddress={selectedOwnerAddress}
|
||||||
|
selectedOwnerName={selectedOwnerName}
|
||||||
owners={owners}
|
owners={owners}
|
||||||
network={network}
|
network={network}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user