Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Jan 4, 2024
1 parent e5516f1 commit 5b7e700
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 85 deletions.
2 changes: 1 addition & 1 deletion dist/esm/index.bundle.js

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -24602,18 +24602,12 @@ var SignLoginDialog = (function (props) {
messageToSign = message;
}

console.log('messageToSign', messageToSign);
console.log('account', account);
wallet.sign(messageToSign).then(function (signature) {
console.log('wallet sign messageToSign', messageToSign);
console.log('wallet sign signature', signature);
console.log('wallet sign wallet', wallet);
recoverSignature({
message: messageToSign,
signature: signature,
wallet: wallet
}).then(function (account) {
console.log('account', account);
props.resolve({
account: account,
wallet: wallet
Expand Down Expand Up @@ -27299,9 +27293,9 @@ var ChangePaymentDialog = (function (props) {
}, "Payment options"), displayedPaymentValue != undefined && /*#__PURE__*/React.createElement("div", {
className: "FontSizeL TextCenter FontWeightBold"
}, /*#__PURE__*/React.createElement("strong", null, displayedPaymentValue.toString())), /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS"
className: "PaddingTopS"
}, /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS PaddingBottomXS TextLeft",
className: "TextLeft",
style: {
height: "32px"
}
Expand Down Expand Up @@ -27392,12 +27386,11 @@ var ChangePaymentDialog = (function (props) {
return onChangeSearch(event, fuse, allPaymentOptions);
}
}))))),
bodyClassName: "ScrollHeight",
bodyRef: listElement,
body: /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS PaddingBottomS"
className: "ScrollHeight PaddingTopXS PaddingBottomS"
}, /*#__PURE__*/React.createElement("div", {
className: "PaddingLeftM PaddingRightM"
className: "PaddingLeftM PaddingRightM PaddingBottomM"
}, displayedPaymentOptions, displayedPaymentOptions.length === 0 && /*#__PURE__*/React.createElement("div", {
className: "TextCenter Opacity05 PaddingTopS PaddingBottomS"
}, /*#__PURE__*/React.createElement("strong", null, "Nothing found for the given search term."), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "Please search for something else.")))),
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.evm.js.map

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24565,18 +24565,12 @@ var SignLoginDialog = (function (props) {
messageToSign = message;
}

console.log('messageToSign', messageToSign);
console.log('account', account);
wallet.sign(messageToSign).then(function (signature) {
console.log('wallet sign messageToSign', messageToSign);
console.log('wallet sign signature', signature);
console.log('wallet sign wallet', wallet);
recoverSignature({
message: messageToSign,
signature: signature,
wallet: wallet
}).then(function (account) {
console.log('account', account);
props.resolve({
account: account,
wallet: wallet
Expand Down Expand Up @@ -27262,9 +27256,9 @@ var ChangePaymentDialog = (function (props) {
}, "Payment options"), displayedPaymentValue != undefined && /*#__PURE__*/React.createElement("div", {
className: "FontSizeL TextCenter FontWeightBold"
}, /*#__PURE__*/React.createElement("strong", null, displayedPaymentValue.toString())), /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS"
className: "PaddingTopS"
}, /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS PaddingBottomXS TextLeft",
className: "TextLeft",
style: {
height: "32px"
}
Expand Down Expand Up @@ -27355,12 +27349,11 @@ var ChangePaymentDialog = (function (props) {
return onChangeSearch(event, fuse, allPaymentOptions);
}
}))))),
bodyClassName: "ScrollHeight",
bodyRef: listElement,
body: /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS PaddingBottomS"
className: "ScrollHeight PaddingTopXS PaddingBottomS"
}, /*#__PURE__*/React.createElement("div", {
className: "PaddingLeftM PaddingRightM"
className: "PaddingLeftM PaddingRightM PaddingBottomM"
}, displayedPaymentOptions, displayedPaymentOptions.length === 0 && /*#__PURE__*/React.createElement("div", {
className: "TextCenter Opacity05 PaddingTopS PaddingBottomS"
}, /*#__PURE__*/React.createElement("strong", null, "Nothing found for the given search term."), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "Please search for something else.")))),
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -24603,18 +24603,12 @@ var SignLoginDialog = (function (props) {
messageToSign = message;
}

console.log('messageToSign', messageToSign);
console.log('account', account);
wallet.sign(messageToSign).then(function (signature) {
console.log('wallet sign messageToSign', messageToSign);
console.log('wallet sign signature', signature);
console.log('wallet sign wallet', wallet);
recoverSignature({
message: messageToSign,
signature: signature,
wallet: wallet
}).then(function (account) {
console.log('account', account);
props.resolve({
account: account,
wallet: wallet
Expand Down Expand Up @@ -27300,9 +27294,9 @@ var ChangePaymentDialog = (function (props) {
}, "Payment options"), displayedPaymentValue != undefined && /*#__PURE__*/React.createElement("div", {
className: "FontSizeL TextCenter FontWeightBold"
}, /*#__PURE__*/React.createElement("strong", null, displayedPaymentValue.toString())), /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS"
className: "PaddingTopS"
}, /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS PaddingBottomXS TextLeft",
className: "TextLeft",
style: {
height: "32px"
}
Expand Down Expand Up @@ -27393,12 +27387,11 @@ var ChangePaymentDialog = (function (props) {
return onChangeSearch(event, fuse, allPaymentOptions);
}
}))))),
bodyClassName: "ScrollHeight",
bodyRef: listElement,
body: /*#__PURE__*/React.createElement("div", {
className: "PaddingTopXS PaddingBottomS"
className: "ScrollHeight PaddingTopXS PaddingBottomS"
}, /*#__PURE__*/React.createElement("div", {
className: "PaddingLeftM PaddingRightM"
className: "PaddingLeftM PaddingRightM PaddingBottomM"
}, displayedPaymentOptions, displayedPaymentOptions.length === 0 && /*#__PURE__*/React.createElement("div", {
className: "TextCenter Opacity05 PaddingTopS PaddingBottomS"
}, /*#__PURE__*/React.createElement("strong", null, "Nothing found for the given search term."), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("strong", null, "Please search for something else.")))),
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.solana.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/index.bundle.js

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -24600,18 +24600,12 @@
messageToSign = message;
}

console.log('messageToSign', messageToSign);
console.log('account', account);
wallet.sign(messageToSign).then(function (signature) {
console.log('wallet sign messageToSign', messageToSign);
console.log('wallet sign signature', signature);
console.log('wallet sign wallet', wallet);
recoverSignature({
message: messageToSign,
signature: signature,
wallet: wallet
}).then(function (account) {
console.log('account', account);
props.resolve({
account: account,
wallet: wallet
Expand Down Expand Up @@ -27297,9 +27291,9 @@
}, "Payment options"), displayedPaymentValue != undefined && /*#__PURE__*/React__default['default'].createElement("div", {
className: "FontSizeL TextCenter FontWeightBold"
}, /*#__PURE__*/React__default['default'].createElement("strong", null, displayedPaymentValue.toString())), /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS"
className: "PaddingTopS"
}, /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS PaddingBottomXS TextLeft",
className: "TextLeft",
style: {
height: "32px"
}
Expand Down Expand Up @@ -27390,12 +27384,11 @@
return onChangeSearch(event, fuse, allPaymentOptions);
}
}))))),
bodyClassName: "ScrollHeight",
bodyRef: listElement,
body: /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS PaddingBottomS"
className: "ScrollHeight PaddingTopXS PaddingBottomS"
}, /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingLeftM PaddingRightM"
className: "PaddingLeftM PaddingRightM PaddingBottomM"
}, displayedPaymentOptions, displayedPaymentOptions.length === 0 && /*#__PURE__*/React__default['default'].createElement("div", {
className: "TextCenter Opacity05 PaddingTopS PaddingBottomS"
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "Nothing found for the given search term."), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("strong", null, "Please search for something else.")))),
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.evm.js.map

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24561,18 +24561,12 @@
messageToSign = message;
}

console.log('messageToSign', messageToSign);
console.log('account', account);
wallet.sign(messageToSign).then(function (signature) {
console.log('wallet sign messageToSign', messageToSign);
console.log('wallet sign signature', signature);
console.log('wallet sign wallet', wallet);
recoverSignature({
message: messageToSign,
signature: signature,
wallet: wallet
}).then(function (account) {
console.log('account', account);
props.resolve({
account: account,
wallet: wallet
Expand Down Expand Up @@ -27258,9 +27252,9 @@
}, "Payment options"), displayedPaymentValue != undefined && /*#__PURE__*/React__default['default'].createElement("div", {
className: "FontSizeL TextCenter FontWeightBold"
}, /*#__PURE__*/React__default['default'].createElement("strong", null, displayedPaymentValue.toString())), /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS"
className: "PaddingTopS"
}, /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS PaddingBottomXS TextLeft",
className: "TextLeft",
style: {
height: "32px"
}
Expand Down Expand Up @@ -27351,12 +27345,11 @@
return onChangeSearch(event, fuse, allPaymentOptions);
}
}))))),
bodyClassName: "ScrollHeight",
bodyRef: listElement,
body: /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS PaddingBottomS"
className: "ScrollHeight PaddingTopXS PaddingBottomS"
}, /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingLeftM PaddingRightM"
className: "PaddingLeftM PaddingRightM PaddingBottomM"
}, displayedPaymentOptions, displayedPaymentOptions.length === 0 && /*#__PURE__*/React__default['default'].createElement("div", {
className: "TextCenter Opacity05 PaddingTopS PaddingBottomS"
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "Nothing found for the given search term."), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("strong", null, "Please search for something else.")))),
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.js.map

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -24601,18 +24601,12 @@
messageToSign = message;
}

console.log('messageToSign', messageToSign);
console.log('account', account);
wallet.sign(messageToSign).then(function (signature) {
console.log('wallet sign messageToSign', messageToSign);
console.log('wallet sign signature', signature);
console.log('wallet sign wallet', wallet);
recoverSignature({
message: messageToSign,
signature: signature,
wallet: wallet
}).then(function (account) {
console.log('account', account);
props.resolve({
account: account,
wallet: wallet
Expand Down Expand Up @@ -27298,9 +27292,9 @@
}, "Payment options"), displayedPaymentValue != undefined && /*#__PURE__*/React__default['default'].createElement("div", {
className: "FontSizeL TextCenter FontWeightBold"
}, /*#__PURE__*/React__default['default'].createElement("strong", null, displayedPaymentValue.toString())), /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS"
className: "PaddingTopS"
}, /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS PaddingBottomXS TextLeft",
className: "TextLeft",
style: {
height: "32px"
}
Expand Down Expand Up @@ -27391,12 +27385,11 @@
return onChangeSearch(event, fuse, allPaymentOptions);
}
}))))),
bodyClassName: "ScrollHeight",
bodyRef: listElement,
body: /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingTopXS PaddingBottomS"
className: "ScrollHeight PaddingTopXS PaddingBottomS"
}, /*#__PURE__*/React__default['default'].createElement("div", {
className: "PaddingLeftM PaddingRightM"
className: "PaddingLeftM PaddingRightM PaddingBottomM"
}, displayedPaymentOptions, displayedPaymentOptions.length === 0 && /*#__PURE__*/React__default['default'].createElement("div", {
className: "TextCenter Opacity05 PaddingTopS PaddingBottomS"
}, /*#__PURE__*/React__default['default'].createElement("strong", null, "Nothing found for the given search term."), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("strong", null, "Please search for something else.")))),
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.solana.js.map

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions src/dialogs/ChangePaymentDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ export default (props)=>{
{ displayedPaymentValue != undefined &&
<div className="FontSizeL TextCenter FontWeightBold"><strong>{ displayedPaymentValue.toString() }</strong></div>
}
<div className="PaddingTopXS">
<div className="PaddingTopXS PaddingBottomXS TextLeft" style={{ height: "32px" }}>
<div className="PaddingTopS">
<div className="TextLeft" style={{ height: "32px" }}>
{ !searching &&
<div>
{ allBestPaymentOptions.length > 0 &&
Expand Down Expand Up @@ -264,11 +264,10 @@ export default (props)=>{
</div>
</div>
}
bodyClassName="ScrollHeight"
bodyRef={ listElement }
body={
<div className="PaddingTopXS PaddingBottomS">
<div className="PaddingLeftM PaddingRightM">
<div className="ScrollHeight PaddingTopXS PaddingBottomS">
<div className="PaddingLeftM PaddingRightM PaddingBottomM">
{ displayedPaymentOptions }
{ displayedPaymentOptions.length === 0 &&
<div className="TextCenter Opacity05 PaddingTopS PaddingBottomS">
Expand Down
6 changes: 0 additions & 6 deletions src/dialogs/SignLoginDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,8 @@ export default (props)=> {
} else {
messageToSign = message
}
console.log('messageToSign', messageToSign)
console.log('account', account)
wallet.sign(messageToSign).then((signature)=>{
console.log('wallet sign messageToSign', messageToSign)
console.log('wallet sign signature', signature)
console.log('wallet sign wallet', wallet)
recoverSignature({ message: messageToSign, signature, wallet }).then((account)=>{
console.log('account', account)
props.resolve({ account, wallet })
setLoggingIn(false)
}).catch((error)=>{
Expand Down

0 comments on commit 5b7e700

Please sign in to comment.