Skip to content

Commit aa2e655

Browse files
Added UI features on section enrollment page (#509)
Co-authored-by: Edward Lee <edwardneo@berkeley.edu>
1 parent 8bdfc37 commit aa2e655

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

csm_web/frontend/src/components/course/SectionCard.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ export const SectionCard = ({
9090
const iconWidth = "8em";
9191
const iconHeight = "8em";
9292
if (enrollmentSuccessful) {
93+
const inlineIconWidth = "1.3em";
94+
const inlineIconHeight = "1.3em";
9395
return (
9496
<div className="enroll-confirm-modal-contents">
9597
<CheckCircle height={iconHeight} width={iconWidth} />
9698
<h3>Successfully enrolled</h3>
97-
<ModalCloser>
98-
<button className="primary-btn">OK</button>
99-
</ModalCloser>
99+
<h4>To view and update your profile, click the button below</h4>
100+
<Link className="primary-btn" to="/profile">
101+
<UserIcon width={inlineIconWidth} height={inlineIconHeight} />
102+
Profile
103+
</Link>
100104
</div>
101105
);
102106
}
@@ -168,7 +172,7 @@ export const SectionCard = ({
168172
)}
169173
</p>
170174
<p title="Mentor">
171-
<UserIcon width={iconWidth} height={iconHeight} /> {mentor.name}
175+
<UserIcon width={iconWidth} height={iconHeight} /> <Link to={`/profile/${mentor.id}`}>{mentor.name}</Link>
172176
</p>
173177
<p title="Current enrollment">
174178
<GroupIcon width={iconWidth} height={iconHeight} /> {`${numStudentsEnrolled}/${capacity}`}

0 commit comments

Comments
 (0)