fix: add missing newlines at the end of JSON files; clean up formatting in page components
This commit is contained in:
@@ -18,7 +18,10 @@ import { Button } from '@kit/ui/button';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card';
|
||||
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { EVENT_STATUS_LABEL_KEYS, EVENT_STATUS_VARIANT } from '~/lib/status-badges';
|
||||
import {
|
||||
EVENT_STATUS_LABEL_KEYS,
|
||||
EVENT_STATUS_VARIANT,
|
||||
} from '~/lib/status-badges';
|
||||
|
||||
import { DeleteEventButton } from './delete-event-button';
|
||||
|
||||
@@ -64,8 +67,10 @@ export default async function EventDetailPage({ params }: PageProps) {
|
||||
}
|
||||
className="mt-1"
|
||||
>
|
||||
{t(EVENT_STATUS_LABEL_KEYS[String(eventData.status)] ??
|
||||
String(eventData.status))}
|
||||
{t(
|
||||
EVENT_STATUS_LABEL_KEYS[String(eventData.status)] ??
|
||||
String(eventData.status),
|
||||
)}
|
||||
</Badge>
|
||||
</div>
|
||||
<Button>
|
||||
|
||||
@@ -21,7 +21,10 @@ import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { EmptyState } from '~/components/empty-state';
|
||||
import { StatsCard } from '~/components/stats-card';
|
||||
import { EVENT_STATUS_VARIANT, EVENT_STATUS_LABEL_KEYS } from '~/lib/status-badges';
|
||||
import {
|
||||
EVENT_STATUS_VARIANT,
|
||||
EVENT_STATUS_LABEL_KEYS,
|
||||
} from '~/lib/status-badges';
|
||||
|
||||
interface PageProps {
|
||||
params: Promise<{ account: string }>;
|
||||
@@ -178,7 +181,10 @@ export default async function EventsPage({ params, searchParams }: PageProps) {
|
||||
'secondary'
|
||||
}
|
||||
>
|
||||
{t(EVENT_STATUS_LABEL_KEYS[String(event.status)] ?? String(event.status))}
|
||||
{t(
|
||||
EVENT_STATUS_LABEL_KEYS[String(event.status)] ??
|
||||
String(event.status),
|
||||
)}
|
||||
</Badge>
|
||||
</td>
|
||||
<td className="p-3 text-right font-medium">
|
||||
|
||||
@@ -13,7 +13,10 @@ import { AccountNotFound } from '~/components/account-not-found';
|
||||
import { CmsPageShell } from '~/components/cms-page-shell';
|
||||
import { EmptyState } from '~/components/empty-state';
|
||||
import { StatsCard } from '~/components/stats-card';
|
||||
import { EVENT_STATUS_VARIANT, EVENT_STATUS_LABEL_KEYS } from '~/lib/status-badges';
|
||||
import {
|
||||
EVENT_STATUS_VARIANT,
|
||||
EVENT_STATUS_LABEL_KEYS,
|
||||
} from '~/lib/status-badges';
|
||||
|
||||
interface PageProps {
|
||||
params: Promise<{ account: string }>;
|
||||
@@ -156,7 +159,10 @@ export default async function EventRegistrationsPage({ params }: PageProps) {
|
||||
'secondary'
|
||||
}
|
||||
>
|
||||
{t(EVENT_STATUS_LABEL_KEYS[event.status] ?? event.status)}
|
||||
{t(
|
||||
EVENT_STATUS_LABEL_KEYS[event.status] ??
|
||||
event.status,
|
||||
)}
|
||||
</Badge>
|
||||
</td>
|
||||
<td className="p-3 text-right">
|
||||
|
||||
Reference in New Issue
Block a user