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
93 changes: 0 additions & 93 deletions client/src/components/category-overview.tsx

This file was deleted.

7 changes: 4 additions & 3 deletions client/src/components/email-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { EmailWithCategory } from "@shared/schema";
interface EmailListProps {
emails: EmailWithCategory[];
loading: boolean;
onEmailSelect: (email: EmailWithCategory) => void;
}

/**
Expand All @@ -16,8 +17,9 @@ interface EmailListProps {
*
* @param emails - Array of email objects with category and metadata to display.
* @param loading - Whether to show loading skeletons instead of email content.
* @param onEmailSelect - Callback function to execute when an email is selected.
*/
export function EmailList({ emails, loading }: EmailListProps) {
export function EmailList({ emails, loading, onEmailSelect }: EmailListProps) {
if (loading) {
return (
<div className="divide-y divide-gray-200">
Expand Down Expand Up @@ -64,8 +66,7 @@ export function EmailList({ emails, loading }: EmailListProps) {
};

const handleEmailClick = (email: EmailWithCategory) => {
// In a real app, this would open the email detail view or redirect to Gmail
console.log("Opening email:", email.subject);
onEmailSelect(email);
};

if (emails.length === 0) {
Expand Down
63 changes: 0 additions & 63 deletions client/src/components/recent-activity.tsx

This file was deleted.

106 changes: 0 additions & 106 deletions client/src/components/stats-cards.tsx

This file was deleted.

Loading