NOT SUPPORTED;
}
};
- return <>{getRequirement()}>;
+ return getRequirement();
}
function CourseRequirementComponent({
diff --git a/src/components/planner/Sidebar/RequirementsContainer.tsx b/src/components/planner/Sidebar/RequirementsContainer.tsx
index b1cb2603e..b7593fce4 100644
--- a/src/components/planner/Sidebar/RequirementsContainer.tsx
+++ b/src/components/planner/Sidebar/RequirementsContainer.tsx
@@ -155,7 +155,9 @@ const getRequirementGroup = (
course: `${c.subject_prefix} ${c.course_number}`,
matcher: 'Course',
filled: courses.includes(`${c.subject_prefix} ${c.course_number}`),
- metadata: {},
+ metadata: {
+ id: `course-${c.id}`,
+ },
}))
: [],
filterFunction: filterFunc,
@@ -200,12 +202,12 @@ const getRequirementGroup = (
};
export const ProgressComponent2 = ({ value, max }: { value: number; max: number }) => {
- const heh = `${(value * 100) / max}%`;
+ const width = `${(value * 100) / max}%`;
return (
);
@@ -220,7 +222,7 @@ export const ProgressComponent = ({
max: number;
unit?: string;
}) => {
- const heh = `${(value * 100) / max}%`;
+ const width = `${(value * 100) / max}%`;
return (
@@ -228,7 +230,7 @@ export const ProgressComponent = ({
{value}/{max} {unit}
);
diff --git a/src/components/planner/Sidebar/types.ts b/src/components/planner/Sidebar/types.ts
index f1d82d381..a94b1c1a3 100644
--- a/src/components/planner/Sidebar/types.ts
+++ b/src/components/planner/Sidebar/types.ts
@@ -17,7 +17,7 @@ export type DegreeRequirement = Requirement & {
export interface Requirement {
matcher: string;
- metadata: { [key: string]: string };
+ metadata: { id: string; [key: string]: string };
filled: boolean;
}
@@ -36,7 +36,6 @@ export type AndRequirementGroup = Requirement & {
export type HoursRequirementGroup = Requirement & {
matcher: 'Hours';
- metadata: { [key: string]: string };
required_hours: number;
fulfilled_hours: number;
requirements: RequirementTypes[];