mirror of https://github.com/trezor/trezor-wallet
parent
4ea99f4dcd
commit
7e752ace44
@ -1,54 +0,0 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styled from 'styled-components';
|
||||
import colors from 'config/colors';
|
||||
import { FONT_SIZE, FONT_WEIGHT, FONT_FAMILY } from 'config/variables';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
padding:
|
||||
`;
|
||||
|
||||
const Textarea = ({
|
||||
className,
|
||||
placeholder = '',
|
||||
value,
|
||||
customStyle = {},
|
||||
onFocus,
|
||||
onBlur,
|
||||
isDisabled,
|
||||
onChange,
|
||||
isError,
|
||||
topLabel,
|
||||
}) => (
|
||||
<Wrapper>
|
||||
{topLabel && (
|
||||
<TopLabel>{topLabel}</TopLabel>
|
||||
)}
|
||||
<StyledTextarea
|
||||
className={className}
|
||||
disabled={isDisabled}
|
||||
style={customStyle}
|
||||
onFocus={onFocus}
|
||||
onBlur={onBlur}
|
||||
value={value}
|
||||
placeholder={placeholder}
|
||||
onChange={onChange}
|
||||
isError={isError}
|
||||
/>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
Textarea.propTypes = {
|
||||
className: PropTypes.string,
|
||||
isError: PropTypes.bool,
|
||||
onFocus: PropTypes.func,
|
||||
onBlur: PropTypes.func,
|
||||
onChange: PropTypes.func,
|
||||
customStyle: PropTypes.string,
|
||||
placeholder: PropTypes.string,
|
||||
value: PropTypes.string,
|
||||
isDisabled: PropTypes.bool,
|
||||
topLabel: PropTypes.node,
|
||||
};
|
||||
|
||||
export default Textarea;
|
@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
padding: 40px 35px 40px 35px;
|
||||
`;
|
||||
|
||||
const Content = ({
|
||||
children,
|
||||
}) => (
|
||||
<Wrapper>
|
||||
{children}
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
Content.propTypes = {
|
||||
children: PropTypes.element,
|
||||
};
|
||||
|
||||
export default Content;
|
@ -1,13 +1,16 @@
|
||||
import styled from 'styled-components';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import Content from 'views/Wallet/components/Content';
|
||||
|
||||
const Wrapper = styled.div``;
|
||||
|
||||
const WalletSettings = () => (
|
||||
<Wrapper>
|
||||
Wallet settings
|
||||
</Wrapper>
|
||||
<Content>
|
||||
<Wrapper>
|
||||
Wallet settings
|
||||
</Wrapper>
|
||||
</Content>
|
||||
);
|
||||
|
||||
export default connect(null, null)(WalletSettings);
|
||||
|
Loading…
Reference in new issue