chore(format): Prettier auf historie.tsx anwenden
Alt-Bestand nie formatiert — isolierter Format-Lauf vor den Historie-Aenderungen. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
62945201b1
commit
6e7a910ed3
1 file changed
+13
-6
@@ -11,9 +11,18 @@ import { ErrorState } from '../components/ui/ErrorState';
|
|||||||
type HistoryPerson = inferRouterOutputs<AppRouter>['dayEntry']['historyForDate']['entries'][number];
|
type HistoryPerson = inferRouterOutputs<AppRouter>['dayEntry']['historyForDate']['entries'][number];
|
||||||
|
|
||||||
const AMPEL_META: Record<string, { label: string; badge: string }> = {
|
const AMPEL_META: Record<string, { label: string; badge: string }> = {
|
||||||
green: { label: 'Im Plan', badge: 'bg-[var(--color-ampel-green-bg)] text-[var(--color-ampel-green-fg)]' },
|
green: {
|
||||||
amber: { label: 'Gefährdet', badge: 'bg-[var(--color-ampel-amber-bg)] text-[var(--color-ampel-amber-fg)]' },
|
label: 'Im Plan',
|
||||||
red: { label: 'Blockiert', badge: 'bg-[var(--color-ampel-red-bg)] text-[var(--color-ampel-red-fg)]' },
|
badge: 'bg-[var(--color-ampel-green-bg)] text-[var(--color-ampel-green-fg)]',
|
||||||
|
},
|
||||||
|
amber: {
|
||||||
|
label: 'Gefährdet',
|
||||||
|
badge: 'bg-[var(--color-ampel-amber-bg)] text-[var(--color-ampel-amber-fg)]',
|
||||||
|
},
|
||||||
|
red: {
|
||||||
|
label: 'Blockiert',
|
||||||
|
badge: 'bg-[var(--color-ampel-red-bg)] text-[var(--color-ampel-red-fg)]',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const TREND_LABEL: Record<string, string> = {
|
const TREND_LABEL: Record<string, string> = {
|
||||||
besser: '↗ Besser',
|
besser: '↗ Besser',
|
||||||
@@ -87,9 +96,7 @@ export function HistorieRoute() {
|
|||||||
{entries.length === 0 ? (
|
{entries.length === 0 ? (
|
||||||
<Card.Root>
|
<Card.Root>
|
||||||
<Card.Body>
|
<Card.Body>
|
||||||
<p className="text-sm text-[var(--color-ink-muted)]">
|
<p className="text-sm text-[var(--color-ink-muted)]">Keine Einträge an diesem Tag.</p>
|
||||||
Keine Einträge an diesem Tag.
|
|
||||||
</p>
|
|
||||||
</Card.Body>
|
</Card.Body>
|
||||||
</Card.Root>
|
</Card.Root>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in new issue
Block a user