9d684d7e9f
- Uncomment Enable Banking extension in loader (now registered at runtime) - Add subscriptionNotice field to ExtensionDefinition type - Show confirmation dialog when enabling extensions with subscription requirements - Fix Settings banking tab: toggle-aware visibility, URL-addressable tabs, BankSelector widget, correct API paths (/api/extensions/ext/enable-banking/*) - Replace inline bank connection cards with BankConnectionStatus component - Add actionable link to Settings from EnableBankingWorkspace - Update CLAUDE.md with latest architecture docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
968 B
TypeScript
25 lines
968 B
TypeScript
'use client'
|
|
|
|
import type { WorkspaceComponentProps } from '@/lib/extensions/workspace-registry'
|
|
import { Button } from '@/components/ui/button'
|
|
import { Landmark, Settings } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
|
|
export default function EnableBankingWorkspace({ userId }: WorkspaceComponentProps) {
|
|
return (
|
|
<div className="flex flex-col items-center justify-center py-16 text-center">
|
|
<Landmark className="h-12 w-12 text-muted-foreground/40 mb-4" />
|
|
<h3 className="text-lg font-medium text-foreground">Bankintegration (PSD2)</h3>
|
|
<p className="text-sm text-muted-foreground mt-1 max-w-md">
|
|
Koppla ditt bankkonto under Inställningar för att synka transaktioner automatiskt.
|
|
</p>
|
|
<Button asChild variant="outline" className="mt-4">
|
|
<Link href="/settings?tab=banking">
|
|
<Settings className="mr-2 h-4 w-4" />
|
|
Gå till bankinställningar
|
|
</Link>
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|