Skip to content

Commit 1fea3e3

Browse files
Merge pull request #289 from multiversx/development
0.1.11
2 parents 06a7909 + 459c913 commit 1fea3e3

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
## [[0.1.10](https://github.com/multiversx/mx-sdk-dapp-ui/pull/288)] - 2026-01-14
10+
## [[0.1.11](https://github.com/multiversx/mx-sdk-dapp-ui/pull/289)] - 2026-01-14
1111

12-
- [Fixed cancel login event on unlock panel](https://github.com/multiversx/mx-sdk-dapp-ui/pull/288)
12+
- [Fixed cancel login event on unlock panel](https://github.com/multiversx/mx-sdk-dapp-ui/pull/289)
1313
- [Refactored side panel helper to `getAnimationDelay`](https://github.com/multiversx/mx-sdk-dapp-ui/pull/287)
1414

1515
## [[0.1.9](https://github.com/multiversx/mx-sdk-dapp-ui/pull/286)] - 2026-01-13

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiversx/sdk-dapp-ui",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"description": "A library to hold UI components for a dApp on the MultiversX blockchain",
55
"author": "MultiversX",
66
"license": "MIT",

src/components/functional/sign-transactions-panel/components/SignTransactionsFooter/SignTransactionsFooter.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { DataTestIdsEnum } from 'constants/dataTestIds.enum';
1111
import state from '../../signTransactionsPanelStore';
1212
import styles from './signTransactionsFooter.styles';
1313

14-
let isWaitingForSignature: boolean = false;
1514
let lastCommonData = { ...state.commonData };
1615

1716
interface SignTransactionsFooterPropsType {
@@ -30,16 +29,16 @@ export function SignTransactionsFooter({
3029
const currentCommonData = { ...state.commonData };
3130
const hasChanged = JSON.stringify(currentCommonData) !== JSON.stringify(lastCommonData);
3231

33-
if (hasChanged && isWaitingForSignature) {
32+
if (hasChanged && state.isWaitingForSignature) {
3433
// Reset the waiting state when data changes
35-
isWaitingForSignature = false;
34+
state.isWaitingForSignature = false;
3635
}
3736

3837
lastCommonData = currentCommonData;
3938

4039
const handleSignClick = () => {
4140
if (state.onConfirm) {
42-
isWaitingForSignature = true;
41+
state.isWaitingForSignature = true;
4342
state.onConfirm();
4443
}
4544
};
@@ -110,12 +109,12 @@ export function SignTransactionsFooter({
110109
size="small"
111110
data-testid={DataTestIdsEnum.signNextTransactionBtn}
112111
onClick={showForwardAction ? handleSignClick : onNext}
113-
disabled={currentIndexCannotBeSignedYet || isWaitingForSignature}
112+
disabled={currentIndexCannotBeSignedYet || state.isWaitingForSignature}
114113
class={classNames(styles.signTransactionsFooterButton, styles.signTransactionsActionButton)}
115114
>
116115
{showForwardAction ? (
117116
<span>
118-
{isWaitingForSignature ? (
117+
{state.isWaitingForSignature ? (
119118
<span>{checkButtonText}</span>
120119
) : (
121120
<span>{needsSigning ? 'Sign' : 'Confirm'}</span>
@@ -128,7 +127,7 @@ export function SignTransactionsFooter({
128127
{showForwardAction ? (
129128
<span class={{ [styles.signTransactionsFooterButtonIconLighter]: currentIndexCannotBeSignedYet }}>
130129
<span class={styles.signTransactionsFooterButtonIcon}>
131-
<Icon name={isWaitingForSignature ? 'spinner' : !needsSigning ? 'pencil' : 'check'} />
130+
<Icon name={state.isWaitingForSignature ? 'spinner' : !needsSigning ? 'pencil' : 'check'} />
132131
</span>
133132
</span>
134133
) : (

0 commit comments

Comments
 (0)