Skip to content

Commit ebcb602

Browse files
authored
fix: Asset Accounts UI (#3252)
* fix: Asset Accounts UI * fix: spell check
1 parent ae4af6e commit ebcb602

File tree

3 files changed

+27
-22
lines changed

3 files changed

+27
-22
lines changed

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -132,22 +132,24 @@ const PageContainer: React.FC<ComponentProps> = props => {
132132
</div>
133133
{notice && <PageHeadNotice notice={notice} />}
134134
</div>
135-
{showWaitForFullySynced && (
136-
<Alert status="warn" className={styles.syncNotification}>
137-
{t(`messages.codes.${ErrorCode.WaitForFullySynced}`)}
138-
<Close className={styles.close} onClick={closeSyncNotice} />
139-
</Alert>
140-
)}
141-
<div className={styles.body}>{children}</div>
142-
<SetStartBlockNumberDialog
143-
show={isSetStartBlockShown}
144-
headerTipNumber={bestKnownBlockNumber}
145-
initStartBlockNumber={walletStartBlockNumber ? Number(walletStartBlockNumber) : undefined}
146-
isMainnet={isMainnet}
147-
address={addresses[0]?.address}
148-
onUpdateStartBlockNumber={onConfirm}
149-
onCancel={closeDialog}
150-
/>
135+
<div className={styles.content}>
136+
{showWaitForFullySynced && (
137+
<Alert status="warn" className={styles.syncNotification}>
138+
{t(`messages.codes.${ErrorCode.WaitForFullySynced}`)}
139+
<Close className={styles.close} onClick={closeSyncNotice} />
140+
</Alert>
141+
)}
142+
<div className={styles.body}>{children}</div>
143+
<SetStartBlockNumberDialog
144+
show={isSetStartBlockShown}
145+
headerTipNumber={bestKnownBlockNumber}
146+
initStartBlockNumber={walletStartBlockNumber ? Number(walletStartBlockNumber) : undefined}
147+
isMainnet={isMainnet}
148+
address={addresses[0]?.address}
149+
onUpdateStartBlockNumber={onConfirm}
150+
onCancel={closeDialog}
151+
/>
152+
</div>
151153
</div>
152154
)
153155
}

packages/neuron-ui/src/components/PageContainer/pageContainer.module.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
.page {
44
background: var(--main-background-color);
55
color: var(--main-text-color);
6-
padding: 0 24px;
76
position: relative;
87
display: flex;
98
flex-direction: column;
@@ -15,6 +14,7 @@
1514
align-items: center;
1615
height: 72px;
1716
margin: 0;
17+
padding: 0 24px;
1818
font-size: 20px;
1919
font-weight: 500;
2020
justify-content: space-between;
@@ -78,6 +78,9 @@
7878
}
7979
}
8080
}
81+
.content {
82+
padding: 0 24px;
83+
}
8184
}
8285

8386
.notice {

packages/neuron-wallet/src/services/transaction-sender.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -755,13 +755,13 @@ export default class TransactionSender {
755755

756756
const withdrawFraction = withdrawEpoch.index * depositEpoch.length
757757
const depositFraction = depositEpoch.index * withdrawEpoch.length
758-
let depositedEpoches = withdrawEpoch.number - depositEpoch.number
758+
let depositedEpochs = withdrawEpoch.number - depositEpoch.number
759759
if (withdrawFraction > depositFraction) {
760-
depositedEpoches += BigInt(1)
760+
depositedEpochs += BigInt(1)
761761
}
762-
const lockEpoches =
763-
((depositedEpoches + (DAO_LOCK_PERIOD_EPOCHS - BigInt(1))) / DAO_LOCK_PERIOD_EPOCHS) * DAO_LOCK_PERIOD_EPOCHS
764-
const minimalSinceEpochNumber = depositEpoch.number + lockEpoches
762+
const lockEpochs =
763+
((depositedEpochs + (DAO_LOCK_PERIOD_EPOCHS - BigInt(1))) / DAO_LOCK_PERIOD_EPOCHS) * DAO_LOCK_PERIOD_EPOCHS
764+
const minimalSinceEpochNumber = depositEpoch.number + lockEpochs
765765
const minimalSinceEpochIndex = depositEpoch.index
766766
const minimalSinceEpochLength = depositEpoch.length
767767

0 commit comments

Comments
 (0)