diff --git a/src/routes/safe/component/Balances/Tokens.jsx b/src/routes/safe/component/Balances/Tokens.jsx deleted file mode 100644 index e5c95fe2..00000000 --- a/src/routes/safe/component/Balances/Tokens.jsx +++ /dev/null @@ -1,10 +0,0 @@ -// @flow -import * as React from 'react' - -const Tokens = () => ( - - Manage Tokens - -) - -export default Tokens diff --git a/src/routes/safe/component/Balances/Tokens/index.jsx b/src/routes/safe/component/Balances/Tokens/index.jsx new file mode 100644 index 00000000..6fb9f683 --- /dev/null +++ b/src/routes/safe/component/Balances/Tokens/index.jsx @@ -0,0 +1,127 @@ +// @flow +import * as React from 'react' +import classNames from 'classnames/bind' +import SearchBar from 'material-ui-search-bar' +import { withStyles } from '@material-ui/core/styles' +import Close from '@material-ui/icons/Close' +import Search from '@material-ui/icons/Search' +import IconButton from '@material-ui/core/IconButton' +import Paragraph from '~/components/layout/Paragraph' +import Button from '~/components/layout/Button' +import Divider from '~/components/layout/Divider' +import Hairline from '~/components/layout/Hairline' +import Spacer from '~/components/Spacer' +import Row from '~/components/layout/Row' +import { lg, md, sm, xs, mediumFontSize } from '~/theme/variables' + +const styles = () => ({ + heading: { + padding: `${md} ${lg}`, + justifyContent: 'space-between', + }, + manage: { + fontSize: '24px', + }, + actions: { + height: '50px', + }, + close: { + height: '35px', + width: '35px', + }, + search: { + color: '#a2a8ba', + paddingLeft: sm, + }, + padding: { + padding: `0 ${md}`, + }, + add: { + fontWeight: 'normal', + paddingRight: md, + paddingLeft: md, + }, + searchInput: { + backgroundColor: 'transparent', + lineHeight: 'initial', + fontSize: mediumFontSize, + padding: 0, + '& > input::placeholder': { + letterSpacing: '-0.5px', + fontSize: mediumFontSize, + color: 'black', + }, + '& > input': { + letterSpacing: '-0.5px', + }, + }, + searchContainer: { + width: '180px', + marginLeft: xs, + marginRight: xs, + }, + searchRoot: { + letterSpacing: '-0.5px', + fontFamily: 'Roboto Mono, monospace', + fontSize: mediumFontSize, + border: 'none', + boxShadow: 'none', + }, + searchIcon: { + '&:hover': { + backgroundColor: 'transparent !important', + }, + }, +}) + +type Props = { + onClose: () => void, + classes: Object, +} + +class Tokens extends React.Component { + requestSearch = () => { + // eslint-disable-next-line + console.log("Filtering by name or symbol...") + } + + render() { + const { onClose, classes } = this.props + const searchClasses = { + input: classes.searchInput, + root: classes.searchRoot, + iconButton: classes.searchIcon, + searchContainer: classes.searchContainer, + } + + return ( + + + Manage Tokens + + + + + + + + } + /> + + + + + + + + ) + } +} + +export default withStyles(styles)(Tokens) diff --git a/src/routes/safe/component/Balances/index.jsx b/src/routes/safe/component/Balances/index.jsx index c10fb7c2..6db1c992 100644 --- a/src/routes/safe/component/Balances/index.jsx +++ b/src/routes/safe/component/Balances/index.jsx @@ -79,7 +79,7 @@ type Props = { class Balances extends React.Component { state = { hideZero: false, - showToken: false, + showToken: true, } onShowToken = () => {