fix(linter): resolve all linter rules and type errors across 3 subprojects

This commit is contained in:
parsa aghaei committed 2026-08-02 09:39:53 +03:30
1 parent 5f790a60a9
commit a1f0640483
17 files changed
+201 -104

No files matched your search

+2 -1
View File
@@ -305,7 +305,8 @@ export default function MediaManager() {
</div>
</div>
</div>
})}
);
})}
</div>
<Pagination currentPage={page} totalPages={totalPages} onPageChange={setPage} />
</div>
@@ -9,10 +9,6 @@ export default function WholesaleApplications() {
const [approveTargetId, setApproveTargetId] = useState<string | null>(null);
const [rejectTargetId, setRejectTargetId] = useState<string | null>(null);
useEffect(() => {
fetchRequests();
}, []);
const fetchRequests = async () => {
setLoading(true);
try {
@@ -25,6 +21,10 @@ export default function WholesaleApplications() {
}
};
useEffect(() => {
fetchRequests();
}, []);
const confirmApprove = async () => {
if (!approveTargetId) return;
try {