Skip to content

Commit

Permalink
Improve appshell
Browse files Browse the repository at this point in the history
  • Loading branch information
polarker committed Aug 24, 2023
1 parent ec83326 commit cf76bce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ import ImportMultisig from './Multisig/ImportMultiSig'
import ShowMultiSig from './Multisig/ShowMultiSig'
import SignMultisigTx from './Multisig/SignMultisigTx'
import BuildMultisigTx from './Multisig/BuildMultiSigTx'
import { useAlephium } from '../utils/utils'

function AppShellExample() {
const theme = useMantineTheme()
const context = useAlephiumConnectContext()
const nodeProvider = useAlephium()

useEffect(() => {
if (context.signerProvider?.nodeProvider !== undefined) {
web3.setCurrentNodeProvider(context.signerProvider.nodeProvider)
web3.setCurrentNodeProvider(nodeProvider)
}
}, [context.signerProvider])

Expand Down

0 comments on commit cf76bce

Please sign in to comment.