Changeset View
Changeset View
Standalone View
Standalone View
native/account/registration/connect-ethereum.react.js
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | (loading: boolean) => { | ||||
if (panelState === 'closing' || panelState === 'closed') { | if (panelState === 'closing' || panelState === 'closed') { | ||||
return; | return; | ||||
} | } | ||||
setPanelState(loading ? 'opening' : 'open'); | setPanelState(loading ? 'opening' : 'open'); | ||||
}, | }, | ||||
[panelState], | [panelState], | ||||
); | ); | ||||
const onSkip = React.useCallback(() => {}, []); | |||||
const onSuccessfulWalletSignature = React.useCallback(() => {}, []); | |||||
let siwePanel; | let siwePanel; | ||||
if (panelState !== 'closed') { | if (panelState !== 'closed') { | ||||
siwePanel = ( | siwePanel = ( | ||||
<SIWEPanel | <SIWEPanel | ||||
onClosing={onPanelClosing} | onClosing={onPanelClosing} | ||||
onClosed={onPanelClosed} | onClosed={onPanelClosed} | ||||
closing={panelState === 'closing'} | closing={panelState === 'closing'} | ||||
onSuccessfulWalletSignature={onSuccessfulWalletSignature} | |||||
setLoading={siwePanelSetLoading} | setLoading={siwePanelSetLoading} | ||||
/> | /> | ||||
); | ); | ||||
} | } | ||||
const onSkip = React.useCallback(() => {}, []); | |||||
return ( | return ( | ||||
<> | <> | ||||
<RegistrationContainer> | <RegistrationContainer> | ||||
<RegistrationContentContainer style={styles.scrollViewContentContainer}> | <RegistrationContentContainer style={styles.scrollViewContentContainer}> | ||||
<Text style={styles.header}> | <Text style={styles.header}> | ||||
Do you want to connect an Ethereum Wallet to your account? | Do you want to connect an Ethereum Wallet to your account? | ||||
</Text> | </Text> | ||||
{body} | {body} | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |