Skip to content

Commit

Permalink
Merge pull request #118 from leo42/Smart-wallet-connector
Browse files Browse the repository at this point in the history
Smart wallet connector
  • Loading branch information
leo42 authored Feb 12, 2025
2 parents d3b1faa + 41a3150 commit 1d3c599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Fe/src/components/Multisig/MultisigContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async setState(state: MultisigContainerState){

this.interval = setInterval(() => {
this.reloadBalance()
}, 1000);
}, 3000);
}


Expand Down Expand Up @@ -377,8 +377,7 @@ async setState(state: MultisigContainerState){
wallets.splice(index,1)
state.wallets = wallets
this.setState(state)


this.connectWallet(this.state.connectedWallet.name)
}

async removePendingTx(index: number){
Expand Down
2 changes: 1 addition & 1 deletion Fe/src/components/Multisig/WalletList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function WalletList (props: {moduleRoot: MultisigContainer, root: any}) {
return (
<div style={{height: "0px"}}>

{ props.moduleRoot.state.modal === "settings" ? <WalletSettings moduleRoot={props.moduleRoot} wallet={props.moduleRoot.state.wallets[props.moduleRoot.state.selectedWallet]} closeSettings={() => props.moduleRoot.showModal("")}/> : ""}
{ props.moduleRoot.state.modal === "settings" && props.moduleRoot.state.selectedWallet !== null && props.moduleRoot.state.wallets.length > 0 ? <WalletSettings moduleRoot={props.moduleRoot} wallet={props.moduleRoot.state.wallets[props.moduleRoot.state.selectedWallet]} closeSettings={() => props.moduleRoot.showModal("")}/> : ""}
<div className='WalletListContainer multisigWalletListContainer'>

<button className={"addNewWalletButton" + ( props.moduleRoot.state.wallets.length === 0 ? " addWalletButtonHighlight" : " ") } onClick={ () => props.moduleRoot.showModal("newWallet")}>+</button>
Expand Down

0 comments on commit 1d3c599

Please sign in to comment.