update admin dashboard & landing page editor

This commit is contained in:
2026-03-27 04:17:11 -05:00
parent 8c6891f80d
commit 482d2d6c97
10 changed files with 2646 additions and 589 deletions
@@ -1,9 +1,6 @@
import type { LandingPageContent } from '@/components/landing/content';
import { cache } from 'react';
import {
defaultLandingPageContent,
mergeLandingPageContent,
} from '@/components/landing/content';
import { mergeLandingPageContent } from '@/components/landing/content';
import { getPayloadClient } from './get-payload';
@@ -19,9 +16,6 @@ export const getLandingPageContent = cache(
}
).findGlobal({ slug: 'landing-page', draft: isPreview });
return mergeLandingPageContent(
(landingPage as Partial<LandingPageContent> | null | undefined) ??
defaultLandingPageContent,
);
return mergeLandingPageContent(landingPage as Partial<LandingPageContent>);
},
);