ownerslist wip
This commit is contained in:
parent
a81f3cf598
commit
ba5b6cf488
|
@ -5,19 +5,19 @@ import cn from 'classnames'
|
||||||
import SearchBar from 'material-ui-search-bar'
|
import SearchBar from 'material-ui-search-bar'
|
||||||
import { withStyles } from '@material-ui/core/styles'
|
import { withStyles } from '@material-ui/core/styles'
|
||||||
import MuiList from '@material-ui/core/List'
|
import MuiList from '@material-ui/core/List'
|
||||||
import Img from '~/components/layout/Img'
|
|
||||||
import Block from '~/components/layout/Block'
|
|
||||||
import ListItem from '@material-ui/core/ListItem'
|
import ListItem from '@material-ui/core/ListItem'
|
||||||
import ListItemIcon from '@material-ui/core/ListItemIcon'
|
import ListItemIcon from '@material-ui/core/ListItemIcon'
|
||||||
|
import CircularProgress from '@material-ui/core/CircularProgress'
|
||||||
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'
|
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'
|
||||||
import ListItemText from '@material-ui/core/ListItemText'
|
import ListItemText from '@material-ui/core/ListItemText'
|
||||||
import Search from '@material-ui/icons/Search'
|
|
||||||
import Button from '~/components/layout/Button'
|
|
||||||
import Switch from '@material-ui/core/Switch'
|
import Switch from '@material-ui/core/Switch'
|
||||||
|
import Search from '@material-ui/icons/Search'
|
||||||
|
import Img from '~/components/layout/Img'
|
||||||
|
import Block from '~/components/layout/Block'
|
||||||
|
import Button from '~/components/layout/Button'
|
||||||
import Divider from '~/components/layout/Divider'
|
import Divider from '~/components/layout/Divider'
|
||||||
import Hairline from '~/components/layout/Hairline'
|
import Hairline from '~/components/layout/Hairline'
|
||||||
import Spacer from '~/components/Spacer'
|
import Spacer from '~/components/Spacer'
|
||||||
import CircularProgress from '@material-ui/core/CircularProgress'
|
|
||||||
import Row from '~/components/layout/Row'
|
import Row from '~/components/layout/Row'
|
||||||
import { ETH_ADDRESS } from '~/logic/tokens/utils/tokenHelpers'
|
import { ETH_ADDRESS } from '~/logic/tokens/utils/tokenHelpers'
|
||||||
import { type Token } from '~/logic/tokens/store/model/token'
|
import { type Token } from '~/logic/tokens/store/model/token'
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
// @flow
|
||||||
|
import React, { useState } from 'react'
|
||||||
|
import { List } from 'immutable'
|
||||||
|
import { withStyles } from '@material-ui/core/styles'
|
||||||
|
import OpenInNew from '@material-ui/icons/OpenInNew'
|
||||||
|
import MuiList from '@material-ui/core/List'
|
||||||
|
import ListItem from '@material-ui/core/ListItem'
|
||||||
|
import ListItemIcon from '@material-ui/core/ListItemIcon'
|
||||||
|
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'
|
||||||
|
import ListItemText from '@material-ui/core/ListItemText'
|
||||||
|
import Tab from '@material-ui/core/Tab'
|
||||||
|
import Row from '~/components/layout/Row'
|
||||||
|
import Block from '~/components/layout/Block'
|
||||||
|
import Col from '~/components/layout/Col'
|
||||||
|
import Bold from '~/components/layout/Bold'
|
||||||
|
import Span from '~/components/layout/Span'
|
||||||
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
|
import Hairline from '~/components/layout/Hairline'
|
||||||
|
import { type Transaction } from '~/routes/safe/store/models/transaction'
|
||||||
|
import { type Owner } from '~/routes/safe/store/models/owner'
|
||||||
|
import { openTxInEtherScan } from '~/logic/wallets/getWeb3'
|
||||||
|
import { shortVersionOf } from '~/logic/wallets/ethAddresses'
|
||||||
|
// import { styles } from './style'
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
owners: List<string>,
|
||||||
|
}
|
||||||
|
|
||||||
|
const OwnersList = ({ owners }: Props) => (
|
||||||
|
<MuiList>
|
||||||
|
{owners.map(owner => (
|
||||||
|
<ListItem>
|
||||||
|
<ListItemText>{owner}</ListItemText>
|
||||||
|
</ListItem>
|
||||||
|
))}
|
||||||
|
</MuiList>
|
||||||
|
)
|
||||||
|
|
||||||
|
export default OwnersList
|
|
@ -16,9 +16,10 @@ import { type Transaction } from '~/routes/safe/store/models/transaction'
|
||||||
import { type Owner } from '~/routes/safe/store/models/owner'
|
import { type Owner } from '~/routes/safe/store/models/owner'
|
||||||
import { openTxInEtherScan } from '~/logic/wallets/getWeb3'
|
import { openTxInEtherScan } from '~/logic/wallets/getWeb3'
|
||||||
import { shortVersionOf } from '~/logic/wallets/ethAddresses'
|
import { shortVersionOf } from '~/logic/wallets/ethAddresses'
|
||||||
|
import { secondary } from '~/theme/variables'
|
||||||
|
import OwnersList from './OwnersList'
|
||||||
import { styles } from './style'
|
import { styles } from './style'
|
||||||
import { formatDate } from '../columns'
|
import { formatDate } from '../columns'
|
||||||
import { secondary } from '~/theme/variables'
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
classes: Object,
|
classes: Object,
|
||||||
|
@ -91,13 +92,15 @@ const ExpandedTx = ({
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Block>
|
</Block>
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={6} className={classes.rightCol}>
|
<Col xs={6} className={classes.rightCol} layout="block">
|
||||||
<Row>
|
<Row>
|
||||||
<Tabs value={tabIndex} onChange={handleTabChange} indicatorColor="secondary" textColor="secondary">
|
<Tabs value={tabIndex} onChange={handleTabChange} indicatorColor="secondary" textColor="secondary">
|
||||||
<Tab label={confirmedLabel} />
|
<Tab label={confirmedLabel} />
|
||||||
<Tab label={unconfirmedLabel} />
|
<Tab label={unconfirmedLabel} />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
<Hairline color="#c8ced4" />
|
||||||
</Row>
|
</Row>
|
||||||
|
<Row>{tabIndex === 0 && <OwnersList owners={owners.map(owner => owner.address)} />}</Row>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</Block>
|
</Block>
|
||||||
|
|
|
@ -16,6 +16,9 @@ export const styles = () => ({
|
||||||
},
|
},
|
||||||
extendedTxContainer: {
|
extendedTxContainer: {
|
||||||
padding: 0,
|
padding: 0,
|
||||||
|
'&:last-child': {
|
||||||
|
padding: 0,
|
||||||
|
},
|
||||||
backgroundColor: '#fffaf4',
|
backgroundColor: '#fffaf4',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue