Skip to content

Commit ca0a085

Browse files
committed
contract verificatin fixes
1 parent 83cc44d commit ca0a085

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

apps/contract-verification/src/app/components/ConfigInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const ConfigInput: React.FC<ConfigInputProps> = ({ label, id, secret, ini
3737
}
3838

3939
return (
40-
<div className="form-group small mb-0">
40+
<div className="small mb-0">
4141
<label className='mt-3' htmlFor={id}>{label}</label>
4242
<div className="d-flex flex-row justify-content-start">
4343
<input

apps/contract-verification/src/app/components/ContractAddressInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const ContractAddressInput: React.FC<ContractAddressInputProps> = ({ labe
2424
}
2525

2626
return (
27-
<div className="form-group">
27+
<div className="mb-3">
2828
<label htmlFor={id}>{label}</label>
29-
<div>{contractAddressError && <div className="text-danger">{contractAddressError}</div>}</div>
29+
{contractAddressError && <div className="text-danger">{contractAddressError}</div>}
3030
<input type="text" className="form-control" id={id} placeholder="0x2738d13E81e..." value={contractAddress} onChange={handleAddressChange} />
3131
</div>
3232
)

apps/contract-verification/src/app/components/ContractDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ export const ContractDropdown: React.FC<ContractDropdownProps> = ({ label, id, s
4242
const hasContracts = compilationOutput && Object.keys(compilationOutput).length > 0
4343

4444
return (
45-
<div className="form-group">
45+
<div className="mb-3">
4646
<label htmlFor={id}><FormattedMessage id="contract-verification.contractDropdownLabel" defaultMessage={label} values={{ label }} /></label>
4747
<select value={selectedContract ? JSON.stringify(selectedContract) : ''}
48-
className={`form-control form-select pe-4 ${!hasContracts ? 'disabled-cursor text-warning' : ''}`}
48+
className={`form-select pe-4 mt-1 ${!hasContracts ? 'disabled-cursor text-warning' : ''}`}
4949
id={id}
5050
disabled={!hasContracts}
5151
onChange={handleSelectContract}

apps/contract-verification/src/app/views/SettingsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const SettingsView = () => {
4141
<CustomTooltip tooltipText="Use Sourcify API v1 instead of v2. Necessary for alternative Sourcify instances that did not upgrade.">
4242
<div className="d-flex py-1 align-items-center custom-control custom-checkbox">
4343
<input
44-
className="form-check-input custom-control-input"
44+
className="form-check-input ms-1"
4545
type="checkbox"
4646
id="sourcify-use-v1-api"
4747
checked={chainSettings.verifiers['Sourcify']?.useV1API ?? false}

apps/contract-verification/src/app/views/VerifyView.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ export const VerifyView = () => {
205205
abiEncodingError={abiEncodingError}
206206
setAbiEncodingError={setAbiEncodingError}
207207
/>}
208-
<div className="pt-3">
209-
<div className="d-flex py-1 align-items-center form-check">
208+
<div className="pt-1">
209+
<div className="d-flex align-items-center form-check">
210210
<input id="has-proxy" className="form-check-input" type="checkbox" checked={!!hasProxy} onChange={(e) => setHasProxy(e.target.checked)} />
211-
<label htmlFor="has-proxy" className="m-0 form-check-label" style={{ paddingTop: '2px' }}>
211+
<label htmlFor="has-proxy" className="ms-1 form-check-label" style={{ paddingTop: '2px' }}>
212212
<FormattedMessage id="contract-verification.proxyInputLabel" defaultMessage={'The deployed contract is behind a proxy'} />
213213
</label>
214214
</div>
@@ -229,9 +229,9 @@ export const VerifyView = () => {
229229

230230
return (
231231
<div key={verifierId} className="pt-2">
232-
<div className="d-flex py-1 align-items-center form-check">
232+
<div className="d-flex align-items-center form-check">
233233
<input
234-
className="form-check-input"
234+
className="form-check-input mb-1"
235235
type="checkbox"
236236
id={`verifier-${verifierId}`}
237237
checked={!!enabledVerifiers[verifierId]}
@@ -240,8 +240,8 @@ export const VerifyView = () => {
240240
/>
241241
<label
242242
htmlFor={`verifier-${verifierId}`}
243-
className={`m-0 form-check-label large fw-bold${!disabledVerifier ? '' : ' text-secondary'}`}
244-
style={{ fontSize: '1rem', color: 'var(--text)' }}
243+
className={`ms-1 form-check-label large fw-bold${!disabledVerifier ? '' : ' text-secondary'}`}
244+
style={{ fontSize: '1rem' }}
245245
>
246246
{verifierId}
247247
</label>

0 commit comments

Comments
 (0)