From b03c2ec0c847dbfdf291f049fb8c0ee161f040da Mon Sep 17 00:00:00 2001 From: Francisco Pessano <76450203+FranP-code@users.noreply.github.com> Date: Sun, 13 Jul 2025 21:01:10 -0300 Subject: [PATCH] Fix compilation and runtime errors --- astro-app/src/components/ProjectCard.tsx | 94 +++++++++++----------- astro-app/src/components/ProjectsTable.tsx | 1 - 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/astro-app/src/components/ProjectCard.tsx b/astro-app/src/components/ProjectCard.tsx index b876352..dd1416c 100644 --- a/astro-app/src/components/ProjectCard.tsx +++ b/astro-app/src/components/ProjectCard.tsx @@ -64,53 +64,55 @@ export function ProjectCard({ project, onSeenStatusChange }: ProjectCardProps) { {/* Project Actions */}
-
- {/* Project URL */} - {project.project_url && ( - - - View Project - - )} - - {/* Tweet URL */} - {project.original_tweet_url && ( - - - View Tweet - - )} -
+ <> +
+ {/* Project URL */} + {project.project_url && ( + + + View Project + + )} + + {/* Tweet URL */} + {project.original_tweet_url && ( + + + View Tweet + + )} +
- {/* Seen Toggle */} - + {/* Seen Toggle */} + +
{/* Engagement Stats */} diff --git a/astro-app/src/components/ProjectsTable.tsx b/astro-app/src/components/ProjectsTable.tsx index ea09e93..8a02825 100644 --- a/astro-app/src/components/ProjectsTable.tsx +++ b/astro-app/src/components/ProjectsTable.tsx @@ -12,7 +12,6 @@ import { } from '@tanstack/react-table'; import { ArrowUpDown, ArrowUp, ArrowDown, Search, ExternalLink, Twitter, Check, X } from 'lucide-react'; import { formatDistanceToNow } from 'date-fns'; -import { useState, useEffect } from 'react'; import type { TwitterProject } from '@/lib/csv-loader'; import { Button } from './ui/button'; import { Input } from './ui/input';