Skip to content

Commit

Permalink
DAO-590 Changed confirm button by Continue on Step Allowance (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freshenext authored Aug 8, 2024
1 parent b2bc59e commit 972b0e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/user/Stake/StakePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface StakePreviewProps {
onCancel: () => void
actionName: string
actionText: string
confirmButtonText?: string
customComponentBeforeFooter?: ReactNode
disableConfirm?: boolean
}
Expand All @@ -25,6 +26,7 @@ export const StakePreview = ({
disableConfirm = true,
actionName,
actionText,
confirmButtonText = 'Confirm',
}: StakePreviewProps) => {
return (
<div className="px-[50px] py-[20px] flex justify-center flex-col">
Expand Down Expand Up @@ -60,7 +62,7 @@ export const StakePreview = ({
disabled={disableConfirm}
buttonProps={{ 'data-testid': 'Confirm' }}
>
Confirm
{confirmButtonText}
</Button>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/app/user/Stake/Steps/StepAllowance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const StepAllowance = ({ onGoNext = () => {}, onCloseModal = () => {} }:
actionName="Allowance"
actionText={actionText}
customComponentBeforeFooter={customFooter}
confirmButtonText="Continue"
/>
)
}

0 comments on commit 972b0e1

Please sign in to comment.