diff --git a/src/commons/assessment/Assessment.tsx b/src/commons/assessment/Assessment.tsx index fc674c05c5..9fd2cf0e67 100644 --- a/src/commons/assessment/Assessment.tsx +++ b/src/commons/assessment/Assessment.tsx @@ -79,27 +79,6 @@ const Assessment: React.FC = () => { const sortAssessments = (assessments: AssessmentOverview[]) => sortBy(assessments, [a => -a.id]); - const makeSubmissionButton = (overview: AssessmentOverview) => ( - - - - ); - // Rendering Logic const assessmentConfigToLoad = useLoaderData() as AssessmentConfiguration; const assessmentOverviews = useMemo( @@ -160,7 +139,6 @@ const Assessment: React.FC = () => { overview={overview} renderAttemptButton={role !== Role.Student} renderGradingTooltip={false} - makeSubmissionButton={makeSubmissionButton} /> ) ); @@ -178,7 +156,6 @@ const Assessment: React.FC = () => { overview={overview} renderAttemptButton renderGradingTooltip={false} - makeSubmissionButton={makeSubmissionButton} /> )); @@ -193,7 +170,6 @@ const Assessment: React.FC = () => { overview={overview} renderAttemptButton renderGradingTooltip - makeSubmissionButton={makeSubmissionButton} /> )); diff --git a/src/commons/assessment/AssessmentOverviewCard.tsx b/src/commons/assessment/AssessmentOverviewCard.tsx index 7da503df85..c850d1f52f 100644 --- a/src/commons/assessment/AssessmentOverviewCard.tsx +++ b/src/commons/assessment/AssessmentOverviewCard.tsx @@ -1,6 +1,7 @@ import { Card, Elevation, H4, H6, Icon, Intent, Position, Text, Tooltip } from '@blueprintjs/core'; import { IconName, IconNames } from '@blueprintjs/icons'; import classNames from 'classnames'; +import classes from 'src/styles/Academy.module.scss'; import { JSX } from 'react'; import defaultCoverImage from '../../assets/default_cover_image.jpg'; @@ -18,7 +19,6 @@ type AssessmentOverviewCardProps = { /** Will only render the attempt button if true, regardless of attempt status. */ renderAttemptButton: boolean; renderGradingTooltip: boolean; - makeSubmissionButton: (overview: AssessmentOverview) => JSX.Element; }; /** A card to display `AssessmentOverview`s. */ @@ -26,7 +26,6 @@ const AssessmentOverviewCard: React.FC = ({ overview, renderAttemptButton, renderGradingTooltip, - makeSubmissionButton }) => { const { isMobileBreakpoint } = useResponsive(); return ( @@ -48,7 +47,6 @@ const AssessmentOverviewCard: React.FC = ({
@@ -90,13 +88,11 @@ const AssessmentOverviewCard: React.FC = ({ type AssessmentOverviewCardTitleProps = { overview: AssessmentOverview; renderProgressStatus: boolean; - makeSubmissionButton: (overview: AssessmentOverview) => JSX.Element; }; const AssessmentOverviewCardTitle: React.FC = ({ overview, renderProgressStatus, - makeSubmissionButton }) => (
@@ -113,7 +109,6 @@ const AssessmentOverviewCardTitle: React.FC = {renderProgressStatus ? showGradingTooltip(overview.isGradingPublished) : null} -
{makeSubmissionButton(overview)}
); diff --git a/src/commons/assessment/__tests__/__snapshots__/Assessment.test.tsx.snap b/src/commons/assessment/__tests__/__snapshots__/Assessment.test.tsx.snap index 86e431d5f2..629536c599 100644 --- a/src/commons/assessment/__tests__/__snapshots__/Assessment.test.tsx.snap +++ b/src/commons/assessment/__tests__/__snapshots__/Assessment.test.tsx.snap @@ -144,50 +144,6 @@ exports[`Assessment page does not show attempt Button for upcoming assessments f An Odessey to Runes (Duplicate)
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -