Skip to content

Commit

Permalink
Merge pull request #776 from nymtech/update/re-enable-bonding
Browse files Browse the repository at this point in the history
re-enable bonding
  • Loading branch information
fmtabbara authored Sep 15, 2021
2 parents e84af4f + 1403449 commit 0d21f4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions wallet-web/components/bond/BondNodeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const BondNodeForm = ({
<Grid container spacing={3}>
<Grid item xs={12} sm={8}>
<TextField
disabled
required
value={manageForm.formData.amount.value}
onChange={manageForm.handleAmountChange}
Expand Down Expand Up @@ -81,7 +80,6 @@ export const BondNodeForm = ({
)}
<Grid item xs={12}>
<TextField
disabled
value={manageForm.formData.identityKey.value}
onChange={manageForm.handleIdentityKeyChange}
error={manageForm.formData.identityKey.isValid === false}
Expand All @@ -97,7 +95,6 @@ export const BondNodeForm = ({
</Grid>
<Grid item xs={12}>
<TextField
disabled
value={manageForm.formData.sphinxKey.value}
onChange={manageForm.handleShinxKeyChange}
error={manageForm.formData.sphinxKey.isValid === false}
Expand All @@ -113,7 +110,6 @@ export const BondNodeForm = ({
</Grid>
<Grid item xs={12} sm={6}>
<TextField
disabled
value={manageForm.formData.host.value}
onChange={manageForm.handleHostChange}
error={manageForm.formData.host.isValid === false}
Expand All @@ -132,7 +128,6 @@ export const BondNodeForm = ({
<Grid item xs={12} sm={6}>
{type === NodeType.Gateway && (
<TextField
disabled
value={manageForm.formData.location.value}
onChange={manageForm.handleLocationChange}
error={manageForm.formData.location.isValid === false}
Expand All @@ -150,7 +145,6 @@ export const BondNodeForm = ({

<Grid item xs={12} sm={6}>
<TextField
disabled
value={manageForm.formData.version.value}
onChange={manageForm.handleVersionChange}
error={manageForm.formData.version.isValid === false}
Expand Down Expand Up @@ -189,7 +183,6 @@ export const BondNodeForm = ({
<>
<Grid item xs={12} sm={4}>
<TextField
disabled
value={manageForm.formData.mixPort.value}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
manageForm.handlePortChange('mixPort', e.target.value)
Expand All @@ -206,7 +199,6 @@ export const BondNodeForm = ({
<>
<Grid item xs={12} sm={4}>
<TextField
disabled
value={manageForm.formData.verlocPort.value}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
manageForm.handlePortChange('verlocPort', e.target.value)
Expand All @@ -222,7 +214,6 @@ export const BondNodeForm = ({

<Grid item xs={12} sm={4}>
<TextField
disabled
value={manageForm.formData.httpApiPort.value}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
manageForm.handlePortChange('httpApiPort', e.target.value)
Expand All @@ -239,7 +230,6 @@ export const BondNodeForm = ({
) : (
<Grid item xs={12} sm={4}>
<TextField
disabled
value={manageForm.formData.clientsPort.value}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
manageForm.handlePortChange('clientsPort', e.target.value)
Expand Down
6 changes: 0 additions & 6 deletions wallet-web/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import CssBaseline from '@material-ui/core/CssBaseline'
import { theme } from '../lib/theme'
import type { AppProps } from 'next/app'
import { ValidatorClientContext } from '../contexts/ValidatorClient'
import { AppAlert } from '../components/AppAlert'
// TODO: should it perhaps be pulled from some config or also user provided?
export const BONDING_CONTRACT_ADDRESS: string =
'punk10pyejy66429refv3g35g2t7am0was7yalwrzen'
Expand Down Expand Up @@ -45,11 +44,6 @@ export default function Application(props: AppProps) {
<ValidatorClientContext.Provider value={{ client, setClient }}>
<ThemeProvider theme={theme}>
<CssBaseline />
<AppAlert
title="Bonding disabled"
message="Mixnode bonding has been temporarily disabled"
severity="info"
/>
<Component {...pageProps} />
</ThemeProvider>
</ValidatorClientContext.Provider>
Expand Down

0 comments on commit 0d21f4e

Please sign in to comment.