Add account hierarchy framework with migrations, RLS policies, and UI components
This commit is contained in:
@@ -7,8 +7,8 @@ import {
|
||||
ClubNotesList,
|
||||
} from '@kit/verbandsverwaltung/components';
|
||||
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
|
||||
interface Props {
|
||||
params: Promise<{ account: string; clubId: string }>;
|
||||
@@ -41,9 +41,11 @@ export default async function ClubDetailPage({ params }: Props) {
|
||||
{detail.club.short_name && (
|
||||
<p className="text-muted-foreground">{detail.club.short_name}</p>
|
||||
)}
|
||||
<div className="mt-2 flex flex-wrap gap-4 text-sm text-muted-foreground">
|
||||
<div className="text-muted-foreground mt-2 flex flex-wrap gap-4 text-sm">
|
||||
{detail.club.city && (
|
||||
<span>{detail.club.zip} {detail.club.city}</span>
|
||||
<span>
|
||||
{detail.club.zip} {detail.club.city}
|
||||
</span>
|
||||
)}
|
||||
{detail.club.member_count != null && (
|
||||
<span>{detail.club.member_count} Mitglieder</span>
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
import { createVerbandApi } from '@kit/verbandsverwaltung/api';
|
||||
import { VerbandTabNavigation, CreateClubForm } from '@kit/verbandsverwaltung/components';
|
||||
import {
|
||||
VerbandTabNavigation,
|
||||
CreateClubForm,
|
||||
} from '@kit/verbandsverwaltung/components';
|
||||
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
|
||||
interface Props {
|
||||
params: Promise<{ account: string }>;
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
import { createVerbandApi } from '@kit/verbandsverwaltung/api';
|
||||
import { VerbandTabNavigation, ClubsDataTable } from '@kit/verbandsverwaltung/components';
|
||||
import {
|
||||
VerbandTabNavigation,
|
||||
ClubsDataTable,
|
||||
} from '@kit/verbandsverwaltung/components';
|
||||
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
|
||||
interface Props {
|
||||
params: Promise<{ account: string }>;
|
||||
|
||||
Reference in New Issue
Block a user