Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install Frontend Dependencies
working-directory: ./frontend
run: npm install
run: npm install --legacy-peer-deps

- name: Install Playwright Browsers
working-directory: ./frontend
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/app/problems/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import Link from "next/link"
import { Search, Filter, Code2, Sparkles, ChevronRight } from "lucide-react"

interface Problem {
_id: string
slug: string
title: string
difficulty: "Easy" | "Medium" | "Hard"
category: string
}

// SSR fetching of problems
async function fetchProblems() {
const apiUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080"
Expand Down Expand Up @@ -91,7 +99,7 @@ export default async function ProblemsPage() {
</p>
</div>
) : (
problems.map((problem: any) => (
problems.map((problem: Problem) => (
<Link
href={`/problems/${problem.slug}`}
key={problem._id}
Expand Down
Loading