Browse Source

Polish an account settings

master
meriadec 7 years ago
parent
commit
3d0570b518
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 9
      src/components/modals/AccountSettingRenderBody.js

9
src/components/modals/AccountSettingRenderBody.js

@ -210,6 +210,7 @@ class HelperComp extends PureComponent<Props, State> {
</Box>
<Box>
<Input
containerProps={{ style: { width: 230 } }}
value={account.name}
maxLength={30}
onChange={this.handleChangeName}
@ -224,7 +225,7 @@ class HelperComp extends PureComponent<Props, State> {
<OptionRowTitle>{t('app:account.settings.unit.title')}</OptionRowTitle>
<OptionRowDesc>{t('app:account.settings.unit.desc')}</OptionRowDesc>
</Box>
<Box style={{ width: 180 }}>
<Box style={{ width: 230 }}>
<Select
onChange={this.handleChangeUnit}
getOptionValue={unitGetOptionValue}
@ -258,7 +259,7 @@ class HelperComp extends PureComponent<Props, State> {
</Box>
</Container>
) : null}
<Spoiler title={t('app:account.settings.advancedLogs')}>
<Spoiler textTransform title={t('app:account.settings.advancedLogs')}>
<SyncAgo date={account.lastSyncDate} />
<textarea
readOnly
@ -278,10 +279,10 @@ class HelperComp extends PureComponent<Props, State> {
</Spoiler>
</ModalContent>
<ModalFooter horizontal>
<Button small danger type="button" onClick={this.handleOpenRemoveAccountModal}>
<Button padded danger type="button" onClick={this.handleOpenRemoveAccountModal}>
{t('app:common.delete')}
</Button>
<Button small ml="auto" type="submit" primary>
<Button padded ml="auto" type="submit" primary>
{t('app:common.apply')}
</Button>
</ModalFooter>

Loading…
Cancel
Save