fix(linter): resolve all linter rules and type errors across 3 subprojects
This commit is contained in:
1 parent
5f790a60a9
commit
a1f0640483
17 files changed
+201
-104
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user