Skip to content

Commit

Permalink
Change button color to red when rejecting (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pabl0cks authored Apr 17, 2024
1 parent fe86562 commit 8998f33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nextjs/app/admin/_components/ActionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export const ActionModal = forwardRef<HTMLDialogElement, ActionModalProps>(({ gr
</div>
)}
<button
className={`btn btn-sm btn-success ${isLoading ? "opacity-50" : ""}`}
className={`btn btn-sm ${action === PROPOSAL_STATUS.REJECTED ? "btn-error" : "btn-success"} ${
isLoading ? "opacity-50" : ""
}`}
onClick={() => handleReviewGrant(action, transactionInputRef?.current?.value, noteInputRef?.current?.value)}
disabled={isLoading}
>
Expand Down

0 comments on commit 8998f33

Please sign in to comment.