fix(lint&types): resolve all lint warnings, typecheck errors and effect state updates across frontend application and admin panel

This commit is contained in:
parsa aghaei committed 2026-08-03 10:13:11 +03:30
1 parent 920dd532e8
commit c1b2f416ed
29 files changed
+442 -352

No files matched your search

+17 -7
View File
@@ -9,13 +9,23 @@ import ConfirmModal from '../components/ui/ConfirmModal';
export interface Pet {
id: string;
name: string;
species: string;
species?: string;
type?: string;
breed?: string;
age?: number;
weight?: number;
ownerName?: string;
activityLevel?: string;
imageUrl?: string;
avatarUrl?: string;
createdAt: string;
user?: {
firstName: ReactNode;
lastName: ReactNode;
name?: string;
mobile?: string;
email?: string;
};
ownerName?: string;
createdAt?: string;
}
export default function Pets() {
@@ -79,9 +89,9 @@ export default function Pets() {
<div className="bg-white p-4 rounded-2xl shadow-sm border border-gray-200 flex flex-col sm:flex-row gap-4">
<div className="relative flex-1">
<Search className="w-5 h-5 absolute right-4 top-1/2 -translate-y-1/2 text-gray-400" />
<input
type="text"
placeholder="جستجو در نام حیوان..."
<input
type="text"
placeholder="جستجو در نام حیوان..."
value={search}
onChange={(e) => { setSearch(e.target.value); setPage(1); }}
className="w-full pl-4 pr-12 py-3 rounded-xl border border-gray-200 focus:border-purple-500 outline-none transition-all"
@@ -127,7 +137,7 @@ export default function Pets() {
<div className="text-gray-500 text-xs font-mono">{pet.user?.mobile || pet.user?.email}</div>
</td>
<td className="py-4 px-6 text-gray-600 text-sm">
{pet.age} ساله، {pet.weight} کیلوگرم<br/>
{pet.age} ساله، {pet.weight} کیلوگرم<br />
<span className="text-xs text-gray-400">تحرک: {pet.activityLevel}</span>
</td>
<td className="py-4 px-6">