other submit buttons

pull/3648/head
Aniket-Engg 2 years ago committed by Aniket
parent 16dd9f0d33
commit 07392de8dc
  1. 2
      apps/etherscan/src/app/components/SubmitButton.tsx
  2. 2
      apps/etherscan/src/app/views/CaptureKeyView.tsx
  3. 2
      apps/etherscan/src/app/views/ReceiptsView.tsx

@ -20,7 +20,7 @@ export const SubmitButton: React.FC<Props> = ({
type="submit"
className="btn btn-primary"
disabled={disable}
title={disable ? "Fill all the fields with valid values" : "Click to verify contract"}
title={disable ? "Fill all the fields with valid values" : "Click to proceed"}
>
{!isSubmitting && text}

@ -53,7 +53,7 @@ export const CaptureKeyView: React.FC = () => {
</div>
<div>
<SubmitButton text="Save" dataId="save-api-key" />
<SubmitButton text="Save" dataId="save-api-key" disable={false} />
</div>
</form>
)}

@ -83,7 +83,7 @@ export const ReceiptsView: React.FC = () => {
component="div"
/>
</div>
<SubmitButton text="Check" />
<SubmitButton text="Check" disable = {!touched.receiptGuid || (touched.receiptGuid && errors.receiptGuid) ? true : false} />
</form>
)}
</Formik>

Loading…
Cancel
Save