From 47b6e293332cdaf83e5d5ec2203597ae4ceb410c Mon Sep 17 00:00:00 2001 From: Femi Odugbesan Date: Tue, 14 Sep 2021 08:21:18 -0500 Subject: [PATCH] clarify necessity for app password when connecting apple calendar (#634) support react element in dialog header props --- components/Dialog.tsx | 10 ++++++++-- pages/integrations/index.tsx | 36 ++++++++++++++++++++++++++++-------- 2 files changed, 36 insertions(+), 10 deletions(-) diff --git a/components/Dialog.tsx b/components/Dialog.tsx index f4ed6a19..37987331 100644 --- a/components/Dialog.tsx +++ b/components/Dialog.tsx @@ -18,13 +18,19 @@ export const DialogContent = React.forwardRef + ref={forwardedRef} + > {children} ) ); -export function DialogHeader({ title, subtitle }: { title: string; subtitle: string }) { +type DialogHeaderProps = { + title: React.ReactElement | string; + subtitle: React.ReactElement | string; +}; + +export function DialogHeader({ title, subtitle }: DialogHeaderProps) { return (
@@ -317,11 +321,25 @@ export default function Home({ integrations }: Props) { return ( setIsAddAppleIntegrationDialogOpen(isOpen)}> + onOpenChange={(isOpen) => setIsAddAppleIntegrationDialogOpen(isOpen)} + > + Generate an app specific password to use with Calendso at{" "} + + https://appleid.apple.com/account/manage + + . Your credentials will be stored and encrypted. +

+ } />
{addAppleError && ( @@ -339,14 +357,16 @@ export default function Home({ integrations }: Props) { { setIsAddAppleIntegrationDialogOpen(false); }} - asChild> + asChild + >