Skip to content

Commit

Permalink
fix: border color of RhfSubmitButton when there is an error (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Dec 16, 2024
1 parent 3e9af78 commit 58749af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-clocks-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": patch
---

fix border color of RhfSubmitButton when there is an error
2 changes: 1 addition & 1 deletion apps/evm/src/containers/Form/RhfSubmitButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const RhfSubmitButton: React.FC<RhfSubmitButtonProps> = ({
type="submit"
loading={formState.isSubmitting || loading}
disabled={!formState.isValid || formState.isSubmitting || disabled}
className={cn('w-full', isDangerousSubmission && 'bg-red')}
className={cn('w-full', isDangerousSubmission && 'bg-red border-red')}
{...otherButtonProps}
>
{formState.isValid ? enabledLabel : disabledLabel}
Expand Down

0 comments on commit 58749af

Please sign in to comment.