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 (
diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx
index 572a2bf8..75657eed 100644
--- a/pages/integrations/index.tsx
+++ b/pages/integrations/index.tsx
@@ -170,7 +170,8 @@ export default function Home({ integrations }: Props) {
@@ -275,7 +276,8 @@ export default function Home({ integrations }: Props) {
return (
@@ -317,11 +321,25 @@ export default function Home({ integrations }: Props) {
return (
+ }
/>
{addAppleError && (
@@ -339,14 +357,16 @@ export default function Home({ integrations }: Props) {
{
setIsAddAppleIntegrationDialogOpen(false);
}}
- asChild>
+ asChild
+ >