mirror of
https://github.com/FranP-code/format_twitter_projects_accounts_tweets.git
synced 2025-10-13 00:32:19 +00:00
Fix compilation and runtime errors
This commit is contained in:
committed by
GitHub
parent
a5f0f63a9c
commit
b03c2ec0c8
@@ -64,53 +64,55 @@ export function ProjectCard({ project, onSeenStatusChange }: ProjectCardProps) {
|
||||
|
||||
{/* Project Actions */}
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center space-x-4">
|
||||
{/* Project URL */}
|
||||
{project.project_url && (
|
||||
<a
|
||||
href={project.project_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center space-x-2 text-primary hover:text-primary/80 transition-colors"
|
||||
>
|
||||
<ExternalLink className="w-4 h-4" />
|
||||
<span className="text-sm font-medium">View Project</span>
|
||||
</a>
|
||||
)}
|
||||
|
||||
{/* Tweet URL */}
|
||||
{project.original_tweet_url && (
|
||||
<a
|
||||
href={project.original_tweet_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center space-x-2 text-blue-500 hover:text-blue-400 transition-colors"
|
||||
>
|
||||
<Twitter className="w-4 h-4" />
|
||||
<span className="text-sm font-medium">View Tweet</span>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
<>
|
||||
<div className="flex items-center space-x-4">
|
||||
{/* Project URL */}
|
||||
{project.project_url && (
|
||||
<a
|
||||
href={project.project_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center space-x-2 text-primary hover:text-primary/80 transition-colors"
|
||||
>
|
||||
<ExternalLink className="w-4 h-4" />
|
||||
<span className="text-sm font-medium">View Project</span>
|
||||
</a>
|
||||
)}
|
||||
|
||||
{/* Tweet URL */}
|
||||
{project.original_tweet_url && (
|
||||
<a
|
||||
href={project.original_tweet_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center space-x-2 text-blue-500 hover:text-blue-400 transition-colors"
|
||||
>
|
||||
<Twitter className="w-4 h-4" />
|
||||
<span className="text-sm font-medium">View Tweet</span>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Seen Toggle */}
|
||||
<Button
|
||||
variant={seen ? "secondary" : "outline"}
|
||||
size="sm"
|
||||
onClick={toggleSeen}
|
||||
className="ml-auto"
|
||||
>
|
||||
{seen ? (
|
||||
<>
|
||||
<X className="w-4 h-4 mr-1" />
|
||||
Mark Unseen
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Check className="w-4 h-4 mr-1" />
|
||||
Mark Seen
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
{/* Seen Toggle */}
|
||||
<Button
|
||||
variant={seen ? "secondary" : "outline"}
|
||||
size="sm"
|
||||
onClick={toggleSeen}
|
||||
className="ml-auto"
|
||||
>
|
||||
{seen ? (
|
||||
<>
|
||||
<X className="w-4 h-4 mr-1" />
|
||||
Mark Unseen
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Check className="w-4 h-4 mr-1" />
|
||||
Mark Seen
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
</>
|
||||
</div>
|
||||
|
||||
{/* Engagement Stats */}
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user