Skip to content

Commit

Permalink
Merge pull request #547 from NIUANULP/main
Browse files Browse the repository at this point in the history
leave button issue
  • Loading branch information
paritshivani authored Aug 27, 2024
2 parents 7d893f1 + 15c2b6e commit 34c8432
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,13 +652,14 @@ const JoinCourse = () => {
>
{t("CANCEL")}
</Button>
{!isCompleted &&
<Button
onClick={handleLeaveCourseClick} // Open confirmation dialog
className="custom-btn-danger"
> {t("LEAVE_COURSE")}
</Button>
}
<Button
onClick={handleLeaveConfirmed}
className="custom-btn-primary"
autoFocus
>
{t("LEAVE_COURSE")}
</Button>


</DialogActions>
</Dialog>
Expand Down Expand Up @@ -703,13 +704,13 @@ const JoinCourse = () => {
>
{t("CANCEL")}
</Button>
{!isCompleted &&
<Button
onClick={handleLeaveCourseClick} // Open confirmation dialog
className="custom-btn-danger"
> {t("LEAVE_COURSE")}
</Button>
}
<Button
onClick={handleLeaveConfirmed}
className="custom-btn-primary"
autoFocus
>
{t("LEAVE_COURSE")}
</Button>

</DialogActions>
</Dialog>
Expand Down

0 comments on commit 34c8432

Please sign in to comment.