feat: pre-existing local changes — fischerei, verband, modules, members, packages
Commits all remaining uncommitted local work: - apps/web: fischerei, verband, modules, members-cms, documents, newsletter, meetings, site-builder, courses, bookings, events, finance pages and components - apps/web: marketing page updates, layout, paths config, next.config.mjs, styles/makerkit.css - apps/web/i18n: documents, fischerei, marketing, verband (de+en) - packages/features: finance, fischerei, member-management, module-builder, newsletter, sitzungsprotokolle, verbandsverwaltung server APIs and components - packages/ui: button.tsx updates - pnpm-lock.yaml
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { CreatePostForm } from '@kit/site-builder/components';
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
import { getTranslations } from 'next-intl/server';
|
||||
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
@@ -10,6 +11,7 @@ interface Props {
|
||||
|
||||
export default async function NewPostPage({ params }: Props) {
|
||||
const { account } = await params;
|
||||
const t = await getTranslations('siteBuilder');
|
||||
const client = getSupabaseServerClient();
|
||||
const { data: acct } = await client
|
||||
.from('accounts')
|
||||
@@ -21,8 +23,8 @@ export default async function NewPostPage({ params }: Props) {
|
||||
return (
|
||||
<CmsPageShell
|
||||
account={account}
|
||||
title="Neuer Beitrag"
|
||||
description="Beitrag erstellen"
|
||||
title={t('posts.newPost')}
|
||||
description={t('posts.newPostDescription')}
|
||||
>
|
||||
<CreatePostForm accountId={acct.id} account={account} />
|
||||
</CmsPageShell>
|
||||
|
||||
Reference in New Issue
Block a user