Browse Source

Select design updates (no more blinks)

master
meriadec 7 years ago
parent
commit
01462894d0
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 5
      src/components/SelectAccount/index.js
  2. 3
      src/components/base/Select/index.js
  3. 4
      src/components/modals/Send.js

5
src/components/SelectAccount/index.js

@ -24,12 +24,12 @@ const mapStateToProps: MapStateToProps<*, *, *> = state => ({
const renderItem = item => ( const renderItem = item => (
<Box horizontal alignItems="center"> <Box horizontal alignItems="center">
<Box grow> <Box grow>
<Text color="dark" fontSize={0} fontWeight="bold"> <Text color="dark" fontSize={4} fontWeight="bold">
{item.name} {item.name}
</Text> </Text>
</Box> </Box>
<Box> <Box>
<Text color="mouse" fontSize={0}> <Text color="mouse" fontSize={4}>
{formatBTC(item.balance)} {formatBTC(item.balance)}
</Text> </Text>
</Box> </Box>
@ -51,6 +51,7 @@ export const SelectAccount = ({ accounts, onChange, value, t }: Props) => (
keyProp="id" keyProp="id"
items={accounts} items={accounts}
placeholder={t('SelectAccount.placeholder')} placeholder={t('SelectAccount.placeholder')}
fontSize={4}
onChange={onChange} onChange={onChange}
/> />
) )

3
src/components/base/Select/index.js

@ -37,8 +37,9 @@ const Container = styled(Box).attrs({ relative: true, color: 'graphite' })``
const TriggerBtn = styled(Box).attrs({ const TriggerBtn = styled(Box).attrs({
ff: 'Open Sans|SemiBold', ff: 'Open Sans|SemiBold',
p: 4, p: 4,
pr: 5,
})` })`
min-height: 58px; min-height: 64px;
${space}; ${space};
border: 1px solid ${p => p.theme.colors.mouse}; border: 1px solid ${p => p.theme.colors.mouse};
border-radius: 3px; border-radius: 3px;

4
src/components/modals/Send.js

@ -29,9 +29,9 @@ const Steps = {
} }
}} }}
> >
<Box flow={3}> <Box flow={5}>
<Text fontSize={6}>{t('send.title')}</Text> <Text fontSize={6}>{t('send.title')}</Text>
<Box flow={1}> <Box flow={2}>
<Label>Account to debit</Label> <Label>Account to debit</Label>
<SelectAccount onChange={props.onChangeInput('account')} value={props.value.account} /> <SelectAccount onChange={props.onChangeInput('account')} value={props.value.account} />
</Box> </Box>

Loading…
Cancel
Save