diff --git a/client/src/pages/analytics.tsx b/client/src/pages/analytics.tsx index b5aade8..85775fa 100644 --- a/client/src/pages/analytics.tsx +++ b/client/src/pages/analytics.tsx @@ -106,52 +106,6 @@ export default function Analytics() { } }; - // Mock analytics data for charts - const stats: StatCard[] = [ - { - label: "Total Projects", - value: 12, - change: 25, - icon: , - color: "text-blue-400" - }, - { - label: "Active Messages", - value: 48, - change: 12, - icon: , - color: "text-purple-400" - }, - { - label: "LP Earned", - value: "2,450", - change: 34, - icon: , - color: "text-yellow-400" - }, - { - label: "Achievements", - value: 23, - change: 8, - icon: , - color: "text-green-400" - }, - { - label: "Network Connections", - value: 156, - change: 18, - icon: , - color: "text-cyan-400" - }, - { - label: "Code Views", - value: "3.2K", - change: 42, - icon: , - color: "text-pink-400" - } - ]; - const activityData: ActivityData[] = [ { date: "Mon", projects: 2, messages: 8, earnings: 120, achievements: 1 }, { date: "Tue", projects: 1, messages: 12, earnings: 180, achievements: 0 }, diff --git a/client/src/pages/file-manager.tsx b/client/src/pages/file-manager.tsx index 9c07b41..cf428f2 100644 --- a/client/src/pages/file-manager.tsx +++ b/client/src/pages/file-manager.tsx @@ -69,8 +69,6 @@ export default function FileManager() { console.error('Error deleting file:', err); } }; - if (selectedFile?.id === id) setSelectedFile(null); - }; return (
diff --git a/client/src/pages/messaging.tsx b/client/src/pages/messaging.tsx index 7bd2eca..bad8dfb 100644 --- a/client/src/pages/messaging.tsx +++ b/client/src/pages/messaging.tsx @@ -80,10 +80,14 @@ export default function Messaging() { hour: "2-digit", minute: "2-digit", }), - isOwn: true, - }; - setMessages([...messages, newMessage]); - setMessageInput(""); + isOwn: true, + }; + setMessages([...messages, newMessage]); + setMessageInput(""); + } + } catch (err) { + console.error('Error sending message:', err); + } }; const selectedChat = chats.find((c) => c.id === selectedChatId); diff --git a/client/src/pages/notifications.tsx b/client/src/pages/notifications.tsx index 7fc4ce0..f46a9e4 100644 --- a/client/src/pages/notifications.tsx +++ b/client/src/pages/notifications.tsx @@ -47,9 +47,6 @@ export default function Notifications() { setLoading(false); } }; - timestamp: new Date(Date.now() - 259200000) - } - ]); const [filterType, setFilterType] = useState(null);