Skip to content

Commit

Permalink
feat: Change space bewteen primary and secondary buttons to 10px
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan committed Aug 4, 2019
1 parent 75eded1 commit cac5e8f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/NetworkEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const NetworkEditor = ({
</Stack.Item>
))}
</Stack>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton onClick={goBack} text={t('common.cancel')} />
<PrimaryButton disabled={errors.includes(true) || notModified} onClick={handleSubmit} text={t('common.save')} />
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/Send/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const Send = ({
</Stack.Item>
</Stack>

<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton type="reset" onClick={onClear}>
{t('send.clear')}
</DefaultButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/WalletEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const WalletEditor = ({
</Stack.Item>
))}
</Stack>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton onClick={goBack} text={t('common.cancel')} />
<PrimaryButton onClick={onConfirm} disabled={!areParamsValid} text={t('common.save')} />
</Stack>
Expand Down
6 changes: 3 additions & 3 deletions packages/neuron-ui/src/components/WalletWizard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import withWizard, { WizardElementProps, WithWizardState } from 'components/with
import { generateMnemonic, validateMnemonic, showErrorMessage } from 'services/remote'
import { createWalletWithMnemonic, importWalletWithMnemonic } from 'states/stateProvider/actionCreators'

import { Routes, MnemonicAction, BUTTON_GAP } from 'utils/const'
import { Routes, MnemonicAction } from 'utils/const'
import { buttonGrommetIconStyles } from 'utils/icons'
import { verifyPasswordComplexity } from 'utils/validators'

Expand Down Expand Up @@ -181,7 +181,7 @@ const Mnemonic = ({
},
}}
/>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: BUTTON_GAP }}>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton onClick={history.goBack} text={t('wizard.back')} />
<PrimaryButton onClick={onNext} disabled={disableNext} text={t('wizard.next')} />
</Stack>
Expand Down Expand Up @@ -289,7 +289,7 @@ const Submission = ({
</Stack>
</Stack>

<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: BUTTON_GAP }}>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton onClick={history.goBack} text={t('wizard.back')} />
<PrimaryButton onClick={onNext} disabled={disableNext} text={t('wizard.next')} />
</Stack>
Expand Down
1 change: 0 additions & 1 deletion packages/neuron-ui/src/utils/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const PAGE_SIZE = 15
export const UNREMOVABLE_NETWORK = 'Testnet'
export const UNREMOVABLE_NETWORK_ID = '0'
export const MIN_CELL_WIDTH = 100
export const BUTTON_GAP = 20

export enum ConnectionStatus {
Online = 'online',
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/widgets/QRScanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const QRScanner = ({ title, label, onConfirm, styles }: QRScannerProps) => {
</div>
<DialogFooter>
<TextField readOnly value={data} label={label} underlined />
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
<DefaultButton onClick={() => setOpen(false)}>{t('common.cancel')}</DefaultButton>
<PrimaryButton
onClick={() => {
Expand Down

0 comments on commit cac5e8f

Please sign in to comment.