website refactor

This commit is contained in:
2026-01-18 00:17:01 +01:00
parent 69d4cce7f1
commit 4b66c682a0
18 changed files with 847 additions and 87 deletions

View File

@@ -9,7 +9,7 @@ export function useSponsorshipRequests(entityType: string, entityId: string) {
const queryResult = useQuery({
queryKey: ['sponsorshipRequests', entityType, entityId],
queryFn: async () => {
const result = await sponsorshipService.getPendingSponsorshipRequests({
const result = await (sponsorshipService as any).getPendingSponsorshipRequests({
entityType,
entityId,
});

View File

@@ -9,7 +9,7 @@ export function useSponsorBilling(sponsorId: string) {
const queryResult = useQuery({
queryKey: ['sponsorBilling', sponsorId],
queryFn: async () => {
const result = await sponsorService.getBilling(sponsorId);
const result = await (sponsorService as any).getBilling(sponsorId);
if (result.isErr()) {
throw new Error(result.getError().message);
}