- {(Array.isArray(user.skills) ? user.skills : (user.skills?.split(",") || [])).map((skill: string, index: number) => (
+ {(user.skills || []).slice(0, 3).map((skill: string, index: number) => (
{typeof skill === 'string' ? skill.trim() : skill}
@@ -106,11 +109,11 @@ const DiscoverPeerCard = memo(({ user, isOnline, onConnect, isConnected }: any)
const Discover = () => {
const [currentUser, setCurrentUser] =
- useState
(null);
+ useState(null);
- const [users, setUsers] = useState([]);
+ const [users, setUsers] = useState([]);
const [filteredUsers, setFilteredUsers] =
- useState([]);
+ useState([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState("");
diff --git a/src/pages/Leaderboard.tsx b/src/pages/Leaderboard.tsx
index 43f56af3..39343767 100644
--- a/src/pages/Leaderboard.tsx
+++ b/src/pages/Leaderboard.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+
import { memo, useEffect, useRef, useState, useCallback } from "react";
import { motion } from "framer-motion";
import {
diff --git a/src/pages/MentorDashboard.tsx b/src/pages/MentorDashboard.tsx
index 9bd9dc29..18190955 100644
--- a/src/pages/MentorDashboard.tsx
+++ b/src/pages/MentorDashboard.tsx
@@ -1,4 +1,4 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
+
import { useEffect, useState } from "react";
import { useRole } from "@/contexts/RoleContext";
import { useAuth } from "@/contexts/useAuth";
diff --git a/src/pages/Notifications.tsx b/src/pages/Notifications.tsx
index 3a7a1ad5..e99f76a1 100644
--- a/src/pages/Notifications.tsx
+++ b/src/pages/Notifications.tsx
@@ -1,7 +1,14 @@
-/* eslint-disable @typescript-eslint/no-explicit-any */
import { useEffect, useState } from "react";
import { supabase } from "@/integrations/supabase/client";
+interface NotificationRow {
+ id: string;
+ type: string;
+ content: string;
+ read: boolean;
+ created_at: string;
+}
+
const Notifications = () => {
const [alerts, setAlerts] = useState([]);
@@ -24,9 +31,9 @@ const Notifications = () => {
Notifications
{alerts.length > 0 ? (
- alerts.map((a) => (
+ alerts.map((a: NotificationRow) => (
- 📢 New Session: {a.title}
+ 📢 New Session: {a.content || "Untitled Session"}
))
) : (
diff --git a/src/pages/aipage.tsx b/src/pages/aipage.tsx
index c37336a5..5c41f969 100644
--- a/src/pages/aipage.tsx
+++ b/src/pages/aipage.tsx
@@ -1,3 +1,4 @@
+
import { useState } from "react";
import { Bot, Send, User } from "lucide-react";
import { supabase } from "@/integrations/supabase/client";
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 8bc0aa2a..a1d86d3e 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,4 +1,4 @@
-/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type, no-unsafe-finally, @typescript-eslint/no-unused-expressions, @typescript-eslint/ban-ts-comment, @typescript-eslint/no-require-imports */
+
import type { Config } from "tailwindcss";
export default {
diff --git a/uploads/profiles/profile-user-948-test-1784562399339-80652895.png b/uploads/profiles/profile-user-948-test-1784562399339-80652895.png
new file mode 100644
index 00000000..8f0aa88d
Binary files /dev/null and b/uploads/profiles/profile-user-948-test-1784562399339-80652895.png differ
diff --git a/uploads/profiles/profile-user-948-test-1784562399345-949418920.png b/uploads/profiles/profile-user-948-test-1784562399345-949418920.png
new file mode 100644
index 00000000..8f0aa88d
Binary files /dev/null and b/uploads/profiles/profile-user-948-test-1784562399345-949418920.png differ
diff --git a/uploads/profiles/profile-user-948-test-1784563190224-561008045.png b/uploads/profiles/profile-user-948-test-1784563190224-561008045.png
new file mode 100644
index 00000000..8f0aa88d
Binary files /dev/null and b/uploads/profiles/profile-user-948-test-1784563190224-561008045.png differ
diff --git a/uploads/profiles/profile-user-948-test-1784563190229-851416550.png b/uploads/profiles/profile-user-948-test-1784563190229-851416550.png
new file mode 100644
index 00000000..8f0aa88d
Binary files /dev/null and b/uploads/profiles/profile-user-948-test-1784563190229-851416550.png differ