diff --git a/src/components/setup/section-card.tsx b/src/components/setup/section-card.tsx index d8cb672..7042a3b 100644 --- a/src/components/setup/section-card.tsx +++ b/src/components/setup/section-card.tsx @@ -17,6 +17,7 @@ type SectionCardProps = { href?: string; onClick?: () => void; status?: SectionStatus; + disabled?: boolean; }; // Settings hub card. Each card represents one setup-able section (Branding, @@ -30,26 +31,32 @@ export const SectionCard = ({ href, onClick, status = 'unknown', + disabled = false, }: SectionCardProps) => { const className = cx( - 'group block w-full text-left rounded-xl border border-secondary bg-primary p-5 shadow-xs transition hover:border-brand hover:shadow-md', + 'group block w-full text-left rounded-xl border border-secondary p-5 shadow-xs transition', + disabled + ? 'cursor-not-allowed opacity-50 bg-disabled_subtle' + : 'bg-primary hover:border-brand hover:shadow-md', ); const body = ( <>
- +
-

{title}

+

{title}

{description}

- + {!disabled && ( + + )}
{status !== 'unknown' && ( @@ -70,6 +77,13 @@ export const SectionCard = ({ ); + if (disabled) { + return ( +
+ {body} +
+ ); + } if (onClick) { return (