diff --git a/apps/web/app/home/(user)/_components/home-accounts-list.tsx b/apps/web/app/home/(user)/_components/home-accounts-list.tsx index f634e931e..df71f689d 100644 --- a/apps/web/app/home/(user)/_components/home-accounts-list.tsx +++ b/apps/web/app/home/(user)/_components/home-accounts-list.tsx @@ -2,7 +2,11 @@ import { use } from 'react'; import Link from 'next/link'; -import { CardButton, CardButtonHeader } from '@kit/ui/card-button'; +import { + CardButton, + CardButtonHeader, + CardButtonTitle, +} from '@kit/ui/card-button'; import { Heading } from '@kit/ui/heading'; import { loadUserWorkspace } from '../_lib/server/load-user-workspace'; @@ -21,7 +25,9 @@ export function HomeAccountsList() { {accounts.map((account) => ( - {account.label} + + {account.label} + ))} diff --git a/apps/web/public/locales/en/auth.json b/apps/web/public/locales/en/auth.json index 1a2cd3852..a54f223bd 100644 --- a/apps/web/public/locales/en/auth.json +++ b/apps/web/public/locales/en/auth.json @@ -36,7 +36,7 @@ "sendEmailLink": "Send Email Link", "sendingEmailLink": "Sending Email Link...", "sendLinkSuccessDescription": "Check your email, we just sent you a link. Follow the link to sign in.", - "sendLinkSuccess": "We send you a link.", + "sendLinkSuccess": "We sent you a link by email", "sendLinkSuccessToast": "Link successfully sent", "getNewLink": "Get a new link", "verificationCode": "Verification Code", diff --git a/packages/ui/src/makerkit/card-button.tsx b/packages/ui/src/makerkit/card-button.tsx index 5f80724e6..4baf1d8bd 100644 --- a/packages/ui/src/makerkit/card-button.tsx +++ b/packages/ui/src/makerkit/card-button.tsx @@ -12,14 +12,14 @@ export const CardButton = React.forwardRef< className?: string; children: React.ReactNode; } ->(({ className, asChild, ...props }, ref) => { +>(function CardButton({ className, asChild, ...props }, ref) { const Comp = asChild ? Slot : 'button'; return ( (function CardButtonTitle({ className, asChild, ...props }, ref) { + const Comp = asChild ? Slot : 'span'; + return ( - <> - - {props.children} - + + {props.children} + + ); +}); + +export const CardButtonHeader = React.forwardRef< + HTMLDivElement, + { + className?: string; + children: React.ReactNode; + } +>(function CardButtonHeader({ className, ...props }, ref) { + return ( +
+ {props.children} - +
); -} +}); + +export const CardButtonContent = React.forwardRef< + HTMLDivElement, + { + className?: string; + asChild?: boolean; + children: React.ReactNode; + } +>(function CardButtonContent({ className, asChild, ...props }, ref) { + const Comp = asChild ? Slot : 'div'; + + return ( + + {props.children} + + ); +}); + +export const CardButtonFooter = React.forwardRef< + HTMLDivElement, + { + className?: string; + asChild?: boolean; + children: React.ReactNode; + } +>(function CardButtonFooter({ className, asChild, ...props }, ref) { + const Comp = asChild ? Slot : 'div'; + + return ( + + {props.children} + + ); +});