Skip to content

Commit cac5e8f

Browse files
committed
feat: Change space bewteen primary and secondary buttons to 10px
1 parent 75eded1 commit cac5e8f

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

packages/neuron-ui/src/components/NetworkEditor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const NetworkEditor = ({
5050
</Stack.Item>
5151
))}
5252
</Stack>
53-
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
53+
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
5454
<DefaultButton onClick={goBack} text={t('common.cancel')} />
5555
<PrimaryButton disabled={errors.includes(true) || notModified} onClick={handleSubmit} text={t('common.save')} />
5656
</Stack>

packages/neuron-ui/src/components/Send/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const Send = ({
181181
</Stack.Item>
182182
</Stack>
183183

184-
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
184+
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
185185
<DefaultButton type="reset" onClick={onClear}>
186186
{t('send.clear')}
187187
</DefaultButton>

packages/neuron-ui/src/components/WalletEditor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const WalletEditor = ({
6060
</Stack.Item>
6161
))}
6262
</Stack>
63-
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
63+
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
6464
<DefaultButton onClick={goBack} text={t('common.cancel')} />
6565
<PrimaryButton onClick={onConfirm} disabled={!areParamsValid} text={t('common.save')} />
6666
</Stack>

packages/neuron-ui/src/components/WalletWizard/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import withWizard, { WizardElementProps, WithWizardState } from 'components/with
1616
import { generateMnemonic, validateMnemonic, showErrorMessage } from 'services/remote'
1717
import { createWalletWithMnemonic, importWalletWithMnemonic } from 'states/stateProvider/actionCreators'
1818

19-
import { Routes, MnemonicAction, BUTTON_GAP } from 'utils/const'
19+
import { Routes, MnemonicAction } from 'utils/const'
2020
import { buttonGrommetIconStyles } from 'utils/icons'
2121
import { verifyPasswordComplexity } from 'utils/validators'
2222

@@ -181,7 +181,7 @@ const Mnemonic = ({
181181
},
182182
}}
183183
/>
184-
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: BUTTON_GAP }}>
184+
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
185185
<DefaultButton onClick={history.goBack} text={t('wizard.back')} />
186186
<PrimaryButton onClick={onNext} disabled={disableNext} text={t('wizard.next')} />
187187
</Stack>
@@ -289,7 +289,7 @@ const Submission = ({
289289
</Stack>
290290
</Stack>
291291

292-
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: BUTTON_GAP }}>
292+
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
293293
<DefaultButton onClick={history.goBack} text={t('wizard.back')} />
294294
<PrimaryButton onClick={onNext} disabled={disableNext} text={t('wizard.next')} />
295295
</Stack>

packages/neuron-ui/src/utils/const.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export const PAGE_SIZE = 15
77
export const UNREMOVABLE_NETWORK = 'Testnet'
88
export const UNREMOVABLE_NETWORK_ID = '0'
99
export const MIN_CELL_WIDTH = 100
10-
export const BUTTON_GAP = 20
1110

1211
export enum ConnectionStatus {
1312
Online = 'online',

packages/neuron-ui/src/widgets/QRScanner/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const QRScanner = ({ title, label, onConfirm, styles }: QRScannerProps) => {
132132
</div>
133133
<DialogFooter>
134134
<TextField readOnly value={data} label={label} underlined />
135-
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 20 }}>
135+
<Stack horizontal horizontalAlign="end" tokens={{ childrenGap: 10 }}>
136136
<DefaultButton onClick={() => setOpen(false)}>{t('common.cancel')}</DefaultButton>
137137
<PrimaryButton
138138
onClick={() => {

0 commit comments

Comments
 (0)