Skip to content

Commit

Permalink
render shirtSizeBtn in step 5
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleNa1000 committed Oct 29, 2023
1 parent 8c08e18 commit 673fd73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/core/components/profile/stepCard.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ const StepCard: React.FC<StepCardProps> = ({ step, status, isApproved }) => {
{text.primaryButton &&
renderButton(text.primaryButton.opensDialog, text.primaryButton.dialogType, true, text.primaryButton.isExternalPath)}
{text.secondaryButton &&
(step !== 5 || (step === 5 && !application.shirtSize)) &&
renderButton(text.secondaryButton.opensDialog, text.secondaryButton.dialogType, false, text.secondaryButton.isExternalPath)}
</div>
</>
Expand Down
10 changes: 5 additions & 5 deletions src/core/constants/stepCard.constant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,12 @@ const stepCardConstant: StepCardModel = {
label: "ชำระค่าใช้จ่าย",
opensDialog: true,
dialogType: "payment"
},
secondaryButton: {
label: "เลือกไซส์เสื้อ",
opensDialog: true,
dialogType: "shirtSize"
}
// secondaryButton: {
// label: "แก้ไขไซส์เสื้อ",
// opensDialog: true,
// dialogType: "shirtSize"
// }
}
},
complete: {
Expand Down

0 comments on commit 673fd73

Please sign in to comment.