Spaces:
Running
Running
fix(ts): resolve TypeScript errors from CI
Browse files- dashboard/page.tsx: add missing connectionError state (contributor forgot useState)
- ContributorsPanel.tsx: replace Github with GitBranch (not exported in lucide-react@1.8)
- OpenSourceBadge.tsx: replace Github with GitBranch (same reason)
frontend/src/app/dashboard/page.tsx
CHANGED
|
@@ -32,6 +32,7 @@ export default function DashboardPage() {
|
|
| 32 |
const [sidebarOpen, setSidebarOpen] = useState(true);
|
| 33 |
const [viewerOpen, setViewerOpen] = useState(true);
|
| 34 |
const [hallOfFameOpen, setHallOfFameOpen] = useState(false);
|
|
|
|
| 35 |
|
| 36 |
// Auth guard
|
| 37 |
useEffect(() => {
|
|
|
|
| 32 |
const [sidebarOpen, setSidebarOpen] = useState(true);
|
| 33 |
const [viewerOpen, setViewerOpen] = useState(true);
|
| 34 |
const [hallOfFameOpen, setHallOfFameOpen] = useState(false);
|
| 35 |
+
const [connectionError, setConnectionError] = useState("");
|
| 36 |
|
| 37 |
// Auth guard
|
| 38 |
useEffect(() => {
|
frontend/src/components/layout/ContributorsPanel.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
import { useState, useEffect } from "react";
|
| 4 |
-
import {
|
| 5 |
import { Button } from "@/components/ui/button";
|
| 6 |
|
| 7 |
interface Contributor {
|
|
@@ -166,7 +166,7 @@ export default function ContributorsPanel({ onClose }: { onClose: () => void })
|
|
| 166 |
rel="noopener noreferrer"
|
| 167 |
>
|
| 168 |
<Button variant="outline" size="sm" className="h-7 text-xs gap-1.5">
|
| 169 |
-
<
|
| 170 |
View on GitHub
|
| 171 |
<ExternalLink className="w-3 h-3" />
|
| 172 |
</Button>
|
|
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
import { useState, useEffect } from "react";
|
| 4 |
+
import { GitBranch, Star, GitPullRequest, Users, X, Trophy, ExternalLink } from "lucide-react";
|
| 5 |
import { Button } from "@/components/ui/button";
|
| 6 |
|
| 7 |
interface Contributor {
|
|
|
|
| 166 |
rel="noopener noreferrer"
|
| 167 |
>
|
| 168 |
<Button variant="outline" size="sm" className="h-7 text-xs gap-1.5">
|
| 169 |
+
<GitBranch className="w-3.5 h-3.5" />
|
| 170 |
View on GitHub
|
| 171 |
<ExternalLink className="w-3 h-3" />
|
| 172 |
</Button>
|
frontend/src/components/layout/OpenSourceBadge.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
import { useState, useEffect } from "react";
|
| 4 |
-
import {
|
| 5 |
|
| 6 |
interface Props {
|
| 7 |
onOpenHallOfFame: () => void;
|
|
@@ -32,7 +32,7 @@ export default function OpenSourceBadge({ onOpenHallOfFame }: Props) {
|
|
| 32 |
{/* Top section */}
|
| 33 |
<div className="px-4 pt-4 pb-3 border-b border-border/40">
|
| 34 |
<div className="flex items-center gap-2 mb-1">
|
| 35 |
-
<
|
| 36 |
<span className="text-sm font-semibold">Open Source</span>
|
| 37 |
<span className="ml-auto text-[10px] px-1.5 py-0.5 rounded-full bg-green-500/15 text-green-400 font-medium border border-green-500/20">
|
| 38 |
GSSOC
|
|
@@ -99,7 +99,7 @@ export default function OpenSourceBadge({ onOpenHallOfFame }: Props) {
|
|
| 99 |
`}
|
| 100 |
title="Open Source — Support this project"
|
| 101 |
>
|
| 102 |
-
<
|
| 103 |
<span className="text-xs font-medium hidden sm:inline">Open Source</span>
|
| 104 |
{stars !== null && (
|
| 105 |
<span className="flex items-center gap-0.5 text-[11px] font-semibold text-yellow-500">
|
|
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
import { useState, useEffect } from "react";
|
| 4 |
+
import { GitBranch, Star, GitFork, Heart, Trophy } from "lucide-react";
|
| 5 |
|
| 6 |
interface Props {
|
| 7 |
onOpenHallOfFame: () => void;
|
|
|
|
| 32 |
{/* Top section */}
|
| 33 |
<div className="px-4 pt-4 pb-3 border-b border-border/40">
|
| 34 |
<div className="flex items-center gap-2 mb-1">
|
| 35 |
+
<GitBranch className="w-4 h-4" />
|
| 36 |
<span className="text-sm font-semibold">Open Source</span>
|
| 37 |
<span className="ml-auto text-[10px] px-1.5 py-0.5 rounded-full bg-green-500/15 text-green-400 font-medium border border-green-500/20">
|
| 38 |
GSSOC
|
|
|
|
| 99 |
`}
|
| 100 |
title="Open Source — Support this project"
|
| 101 |
>
|
| 102 |
+
<GitBranch className="w-4 h-4 group-hover:text-primary transition-colors" />
|
| 103 |
<span className="text-xs font-medium hidden sm:inline">Open Source</span>
|
| 104 |
{stars !== null && (
|
| 105 |
<span className="flex items-center gap-0.5 text-[11px] font-semibold text-yellow-500">
|