|
3 | 3 | exports[`Profile renders correctly when there are closed and graded, or closed and not manually graded assessments 1`] = ` |
4 | 4 | "<MemoryRouter initialEntries={{...}}> |
5 | 5 | <Router history={{...}}> |
6 | | - <Profile name=\\"yeeet\\" role=\\"staff\\" assessmentOverviews={{...}} assessmentTypes={{...}} isOpen={true} handleAssessmentOverviewFetch={[Function: handleAssessmentOverviewFetch]} onClose={[Function: onClose]}> |
| 6 | + <Profile name=\\"yeeet\\" role=\\"staff\\" courseId={1} assessmentOverviews={{...}} assessmentTypes={{...}} isOpen={true} handleAssessmentOverviewFetch={[Function: handleAssessmentOverviewFetch]} onClose={[Function: onClose]}> |
7 | 7 | <Blueprint3.Drawer className=\\"profile\\" icon=\\"user\\" isCloseButtonShown={true} isOpen={true} onClose={[Function: onClose]} title=\\"User Profile\\" position=\\"left\\" size=\\"360px\\" canOutsideClickClose={true} shouldReturnFocusOnClose={true} style={{...}} vertical={false}> |
8 | 8 | <Blueprint3.Overlay className=\\"bp3-overlay-container\\" icon=\\"user\\" isCloseButtonShown={true} isOpen={true} onClose={[Function: onClose]} title=\\"User Profile\\" position=\\"left\\" size=\\"360px\\" canOutsideClickClose={true} shouldReturnFocusOnClose={true} style={{...}} vertical={false} onOpening={[Function (anonymous)]} onClosed={[Function (anonymous)]} autoFocus={true} backdropProps={{...}} canEscapeKeyClose={true} enforceFocus={true} hasBackdrop={true} lazy={true} transitionDuration={300} transitionName=\\"bp3-overlay\\" usePortal={true}> |
9 | 9 | <Blueprint3.Portal className={[undefined]} container={{...}}> |
@@ -90,11 +90,11 @@ exports[`Profile renders correctly when there are closed and graded, or closed a |
90 | 90 | </div> |
91 | 91 | </div> |
92 | 92 | <div className=\\"profile-callouts\\"> |
93 | | - <ProfileCard item={{...}} getFrac={[Function: getFrac]} parseColour={[Function: parseColour]} renderIcon={[Function: renderIcon]} courseId={[undefined]}> |
94 | | - <NavLink className=\\"profile-summary-navlink\\" target=\\"_blank\\" to=\\"/courses/undefined/quests/5/0\\" activeClassName=\\"profile-summary-navlink\\"> |
| 93 | + <ProfileCard item={{...}} getFrac={[Function: getFrac]} parseColour={[Function: parseColour]} renderIcon={[Function: renderIcon]} courseId={1}> |
| 94 | + <NavLink className=\\"profile-summary-navlink\\" target=\\"_blank\\" to=\\"/courses/1/quests/5/0\\" activeClassName=\\"profile-summary-navlink\\"> |
95 | 95 | <Link aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} to={{...}} target=\\"_blank\\"> |
96 | | - <LinkAnchor aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/undefined/quests/5/0\\" navigate={[Function: navigate]}> |
97 | | - <a aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/undefined/quests/5/0\\" onClick={[Function: onClick]}> |
| 96 | + <LinkAnchor aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/1/quests/5/0\\" navigate={[Function: navigate]}> |
| 97 | + <a aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/1/quests/5/0\\" onClick={[Function: onClick]}> |
98 | 98 | <Blueprint3.Callout className=\\"profile-summary-callout\\" icon=\\"lightbulb\\" title=\\"Closed (fully graded) Sidequest\\"> |
99 | 99 | <div className=\\"bp3-callout bp3-callout-icon profile-summary-callout\\"> |
100 | 100 | <Blueprint3.Icon icon=\\"lightbulb\\" size={20}> |
@@ -134,11 +134,11 @@ exports[`Profile renders correctly when there are closed and graded, or closed a |
134 | 134 | </Link> |
135 | 135 | </NavLink> |
136 | 136 | </ProfileCard> |
137 | | - <ProfileCard item={{...}} getFrac={[Function: getFrac]} parseColour={[Function: parseColour]} renderIcon={[Function: renderIcon]} courseId={[undefined]}> |
138 | | - <NavLink className=\\"profile-summary-navlink\\" target=\\"_blank\\" to=\\"/courses/undefined/quests/5/0\\" activeClassName=\\"profile-summary-navlink\\"> |
| 137 | + <ProfileCard item={{...}} getFrac={[Function: getFrac]} parseColour={[Function: parseColour]} renderIcon={[Function: renderIcon]} courseId={1}> |
| 138 | + <NavLink className=\\"profile-summary-navlink\\" target=\\"_blank\\" to=\\"/courses/1/quests/5/0\\" activeClassName=\\"profile-summary-navlink\\"> |
139 | 139 | <Link aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} to={{...}} target=\\"_blank\\"> |
140 | | - <LinkAnchor aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/undefined/quests/5/0\\" navigate={[Function: navigate]}> |
141 | | - <a aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/undefined/quests/5/0\\" onClick={[Function: onClick]}> |
| 140 | + <LinkAnchor aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/1/quests/5/0\\" navigate={[Function: navigate]}> |
| 141 | + <a aria-current={{...}} className=\\"profile-summary-navlink\\" style={[undefined]} target=\\"_blank\\" href=\\"/courses/1/quests/5/0\\" onClick={[Function: onClick]}> |
142 | 142 | <Blueprint3.Callout className=\\"profile-summary-callout\\" icon=\\"lightbulb\\" title=\\"Ungraded assessment\\"> |
143 | 143 | <div className=\\"bp3-callout bp3-callout-icon profile-summary-callout\\"> |
144 | 144 | <Blueprint3.Icon icon=\\"lightbulb\\" size={20}> |
@@ -197,7 +197,7 @@ exports[`Profile renders correctly when there are closed and graded, or closed a |
197 | 197 | exports[`Profile renders correctly when there are no closed assessments 1`] = ` |
198 | 198 | "<MemoryRouter initialEntries={{...}}> |
199 | 199 | <Router history={{...}}> |
200 | | - <Profile name=\\"yeet\\" role=\\"student\\" assessmentOverviews={{...}} assessmentTypes={{...}} isOpen={true} handleAssessmentOverviewFetch={[Function: handleAssessmentOverviewFetch]} onClose={[Function: onClose]}> |
| 200 | + <Profile name=\\"yeet\\" role=\\"student\\" courseId={1} assessmentOverviews={{...}} assessmentTypes={{...}} isOpen={true} handleAssessmentOverviewFetch={[Function: handleAssessmentOverviewFetch]} onClose={[Function: onClose]}> |
201 | 201 | <Blueprint3.Drawer className=\\"profile\\" icon=\\"user\\" isCloseButtonShown={true} isOpen={true} onClose={[Function: onClose]} title=\\"User Profile\\" position=\\"left\\" size=\\"360px\\" canOutsideClickClose={true} shouldReturnFocusOnClose={true} style={{...}} vertical={false}> |
202 | 202 | <Blueprint3.Overlay className=\\"bp3-overlay-container\\" icon=\\"user\\" isCloseButtonShown={true} isOpen={true} onClose={[Function: onClose]} title=\\"User Profile\\" position=\\"left\\" size=\\"360px\\" canOutsideClickClose={true} shouldReturnFocusOnClose={true} style={{...}} vertical={false} onOpening={[Function (anonymous)]} onClosed={[Function (anonymous)]} autoFocus={true} backdropProps={{...}} canEscapeKeyClose={true} enforceFocus={true} hasBackdrop={true} lazy={true} transitionDuration={300} transitionName=\\"bp3-overlay\\" usePortal={true}> |
203 | 203 | <Blueprint3.Portal className={[undefined]} container={{...}}> |
|
0 commit comments