diff --git a/app/fund/dashboard/FunderDashboardContent.tsx b/app/fund/dashboard/FunderDashboardContent.tsx deleted file mode 100644 index 60d4e159b..000000000 --- a/app/fund/dashboard/FunderDashboardContent.tsx +++ /dev/null @@ -1,33 +0,0 @@ -'use client'; - -import { useEffect } from 'react'; -import { useRouter } from 'next/navigation'; -import { FundsGiven } from '@/components/Funding/dashboard/FundsGiven'; -import { useUser } from '@/contexts/UserContext'; - -export function FunderDashboardContent() { - const router = useRouter(); - const { user, isLoading: isLoadingUser } = useUser(); - - useEffect(() => { - if (!isLoadingUser && !user) { - router.replace('/'); - } - }, [isLoadingUser, router, user]); - - if (isLoadingUser || !user) return null; - - const firstName = user.firstName?.trim(); - - return ( - <> -
-

- {firstName ? `Welcome back, ${firstName}.` : 'Welcome back.'} -

-

Here's where your funding stands today.

-
- - - ); -} diff --git a/app/fund/dashboard/page.tsx b/app/fund/dashboard/page.tsx deleted file mode 100644 index a2c325435..000000000 --- a/app/fund/dashboard/page.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { Metadata } from 'next'; -import { PageLayout } from '@/app/layouts/PageLayout'; -import { buildOpenGraphMetadata } from '@/lib/metadata'; -import { FunderDashboardContent } from './FunderDashboardContent'; - -export const metadata: Metadata = buildOpenGraphMetadata({ - title: 'Funder Dashboard', - description: 'Track the impact of the research you fund.', - url: '/fund/dashboard', -}); - -export default function FunderDashboardRoute() { - return ( - - - - ); -} diff --git a/app/give/components/GiveDashboard.tsx b/app/give/components/GiveDashboard.tsx index eafaa2995..e50f5e2fc 100644 --- a/app/give/components/GiveDashboard.tsx +++ b/app/give/components/GiveDashboard.tsx @@ -88,7 +88,7 @@ export function GiveDashboard() { all the way to the result.

- Your funder dashboard brings every opportunity you support into one place. + My Funding brings every opportunity you support into one place.