Skip to content

Commit

Permalink
remove local courses.json
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrahadi committed Oct 8, 2024
1 parent 079f76f commit 8c65b3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9,151 deletions.
2 changes: 0 additions & 2 deletions pages/courses.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Hero } from "@components";
import HeroImage from "@images/about-page/about-hero-background.png";
import { useEffect, useState } from "react";
import coursesJson from "@jsons/courses.json";
import { Course, Requirement, RequirementSchema } from "types/course";
import { z } from "zod";
import { SidebarCourse } from "components/SidebarCourse";
Expand All @@ -26,7 +25,6 @@ const Courses: React.FC = () => {
if (!cachedData) {
localStorage.setItem("courses", JSON.stringify(json));
}

setRequirements(z.array(RequirementSchema).parse(json));
} catch (error) {
console.error(error);
Expand Down
Loading

0 comments on commit 8c65b3b

Please sign in to comment.