Coderabbit
This commit is contained in:
@@ -284,10 +284,10 @@ export function RailgunDemo() {
|
||||
<div style={legend}>Public Sepolia state</div>
|
||||
<div style={row}>
|
||||
<label style={sub}>RPC</label>
|
||||
<select style={input} value={RPC_PRESETS.includes(rpc) ? rpc : ''} onChange={(e) => { setRpc(e.target.value); providerRef.current = null; }}>
|
||||
<select style={input} value={RPC_PRESETS.includes(rpc) ? rpc : ''} disabled={connected || busy} onChange={(e) => { setRpc(e.target.value); providerRef.current = null; }}>
|
||||
{RPC_PRESETS.map((u) => <option key={u} value={u}>{u}</option>)}
|
||||
</select>
|
||||
<input style={input} value={rpc} onChange={(e) => { setRpc(e.target.value); providerRef.current = null; }} />
|
||||
<input style={input} value={rpc} disabled={connected || busy} onChange={(e) => { setRpc(e.target.value); providerRef.current = null; }} />
|
||||
</div>
|
||||
<div style={row}>
|
||||
<Button onClick={checkBalance} disabled={!connected || !hasWallet || busy}>Check balance</Button>
|
||||
|
||||
@@ -180,9 +180,14 @@ export function MixTunnelSetup({
|
||||
<Button onClick={connect} disabled={connected || busy || terminated}>{busy && !connected ? 'Connecting...' : 'Connect to mixnet'}</Button>
|
||||
<Button onClick={disconnect} disabled={!connected || busy}>Disconnect</Button>
|
||||
<StatusText status={status} />
|
||||
<label style={{ ...sub, marginLeft: 'auto', cursor: 'pointer' }} onClick={() => setShowAdvanced((v) => !v)}>
|
||||
<button
|
||||
type="button"
|
||||
aria-expanded={showAdvanced}
|
||||
style={{ ...sub, marginLeft: 'auto', cursor: 'pointer', background: 'none', border: 'none', padding: 0, fontFamily: 'inherit', fontWeight: 'inherit', color: 'inherit' }}
|
||||
onClick={() => setShowAdvanced((v) => !v)}
|
||||
>
|
||||
{showAdvanced ? '▾ advanced' : '▸ advanced'}
|
||||
</label>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{showAdvanced && (
|
||||
|
||||
Reference in New Issue
Block a user