From 9436f4d0e172da34965b6de1a2b5ba560a196bd2 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 25 Jan 2026 16:54:35 -0800 Subject: [PATCH] =?UTF-8?q?chore(hooks):=20=F0=9F=94=A7=20Update=20TypeScr?= =?UTF-8?q?ipt=20hook=20files=20(8=20total)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/marketplace/frontend-public/src/api/index.ts | 1 + features/marketplace/frontend-public/src/components/index.ts | 3 +++ .../src/features/mentorship/hooks/useMentorAccess.hooks.ts | 2 +- .../src/features/mentorship/hooks/useMentorDrafts.hooks.ts | 2 +- .../src/features/mentorship/hooks/useMentorship.hooks.ts | 2 +- .../src/features/mentorship/pages/MenteeDraftsPage.tsx | 2 +- features/marketplace/frontend-public/src/hooks/index.ts | 3 +++ features/marketplace/frontend-public/src/types/index.ts | 2 ++ 8 files changed, 13 insertions(+), 4 deletions(-) diff --git a/features/marketplace/frontend-public/src/api/index.ts b/features/marketplace/frontend-public/src/api/index.ts index aca5e0fd6..570719db2 100755 --- a/features/marketplace/frontend-public/src/api/index.ts +++ b/features/marketplace/frontend-public/src/api/index.ts @@ -9,3 +9,4 @@ export * from './seo'; // Feature-specific APIs export { usageApi } from '../features/usage/api/usage.api'; export * from '../features/subscription/api'; +export * from '../features/fmty/api'; diff --git a/features/marketplace/frontend-public/src/components/index.ts b/features/marketplace/frontend-public/src/components/index.ts index 2b65ddc4f..c483e86a4 100755 --- a/features/marketplace/frontend-public/src/components/index.ts +++ b/features/marketplace/frontend-public/src/components/index.ts @@ -53,3 +53,6 @@ export * from '../features/landing/components/FinalCTABanner'; export * from '../features/landing/components/VisualHero'; export * from '../features/landing/components/StatsRow'; export * from '../features/landing/components/AtmosphereSection'; + +// Mentorship feature components +export * from '../features/mentorship/components'; diff --git a/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorAccess.hooks.ts b/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorAccess.hooks.ts index efeada0d3..7a24f1fce 100644 --- a/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorAccess.hooks.ts +++ b/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorAccess.hooks.ts @@ -17,7 +17,7 @@ import type { MenteeContact, } from '@/types'; -import { mentorAccessApi } from '@/api/mentorship.api'; +import { mentorAccessApi } from '../api/mentorship.api'; // ============================================ // Options Interfaces diff --git a/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorDrafts.hooks.ts b/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorDrafts.hooks.ts index ce71a31ba..68a380422 100644 --- a/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorDrafts.hooks.ts +++ b/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorDrafts.hooks.ts @@ -19,7 +19,7 @@ import type { } from '@/types'; import type { UseMutationResult } from '@tanstack/react-query'; -import { mentorDraftsApi } from '@/api/mentorship.api'; +import { mentorDraftsApi } from '../api/mentorship.api'; // ============================================ // Return Type Interfaces diff --git a/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorship.hooks.ts b/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorship.hooks.ts index ea7b2b13e..9f497559e 100644 --- a/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorship.hooks.ts +++ b/features/marketplace/frontend-public/src/features/mentorship/hooks/useMentorship.hooks.ts @@ -21,7 +21,7 @@ import type { } from '@/types'; import type { UseMutationResult } from '@tanstack/react-query'; -import { mentorshipApi } from '@/api/mentorship.api'; +import { mentorshipApi } from '../api/mentorship.api'; // ============================================ // Return Type Interfaces diff --git a/features/marketplace/frontend-public/src/features/mentorship/pages/MenteeDraftsPage.tsx b/features/marketplace/frontend-public/src/features/mentorship/pages/MenteeDraftsPage.tsx index c963994a2..6aa0cc9f7 100644 --- a/features/marketplace/frontend-public/src/features/mentorship/pages/MenteeDraftsPage.tsx +++ b/features/marketplace/frontend-public/src/features/mentorship/pages/MenteeDraftsPage.tsx @@ -154,7 +154,7 @@ export const MenteeDraftsPage = (): ReactElement => { key={draft.id} draft={draft} onApprove={() => handleApprove(draft.id)} - onReject={(notes) => handleReject(draft.id, notes)} + onReject={(notes: string) => handleReject(draft.id, notes)} isLoading={ approveMutation.isPending || rejectMutation.isPending } diff --git a/features/marketplace/frontend-public/src/hooks/index.ts b/features/marketplace/frontend-public/src/hooks/index.ts index 5bc7aa668..8d69e1b3b 100755 --- a/features/marketplace/frontend-public/src/hooks/index.ts +++ b/features/marketplace/frontend-public/src/hooks/index.ts @@ -32,3 +32,6 @@ export * from '../features/subscription/hooks/useTiers'; export * from '../features/subscription/hooks/useCheckout'; export * from '../features/subscription/hooks/useSubscription'; export * from '../features/subscription/hooks/useBillingHistory'; + +// Mentorship feature hooks +export * from '../features/mentorship/hooks'; diff --git a/features/marketplace/frontend-public/src/types/index.ts b/features/marketplace/frontend-public/src/types/index.ts index d2d35df6a..801ceea85 100755 --- a/features/marketplace/frontend-public/src/types/index.ts +++ b/features/marketplace/frontend-public/src/types/index.ts @@ -7,3 +7,5 @@ export * from '../features/discovery/types'; export * from '../features/inbox/types'; export * from '../features/subscription/types'; export * from '../features/usage/types'; +export * from '../features/mentorship/types'; +export * from '../features/landing/components/AudienceHero/types';