diff --git a/apps/trust/src/pages/auth/ConnectPage.tsx b/apps/trust/src/pages/auth/ConnectPage.tsx index 54ef9148d..0a2cfee4d 100644 --- a/apps/trust/src/pages/auth/ConnectPage.tsx +++ b/apps/trust/src/pages/auth/ConnectPage.tsx @@ -16,6 +16,8 @@ import { useFormWithSchema } from "#/hooks/useFormWithSchema"; import { useSafeContinueUrl } from "#/hooks/useSafeContinueUrl"; import { getPathPrefix } from "#/utils/pathPrefix"; +import { Divider } from "./_components/Divider"; + import type { ConnectPageMutation, SendMagicLinkInput } from "./__generated__/ConnectPageMutation.graphql"; import type { ConnectPageOIDCButtonFragment$key } from "./__generated__/ConnectPageOIDCButtonFragment.graphql"; import type { ConnectPageQuery } from "./__generated__/ConnectPageQuery.graphql"; @@ -64,17 +66,6 @@ type FormData = z.infer; const timerDurationSeconds = 60; -function Divider({ children }: { children: React.ReactNode }) { - return ( -
-
- - {children} - -
- ); -} - function OIDCButtons({ providers, safeContinueUrl, diff --git a/apps/trust/src/pages/auth/_components/Divider.tsx b/apps/trust/src/pages/auth/_components/Divider.tsx new file mode 100644 index 000000000..c42381462 --- /dev/null +++ b/apps/trust/src/pages/auth/_components/Divider.tsx @@ -0,0 +1,10 @@ +export function Divider({ children }: { children: React.ReactNode }) { + return ( +
+
+ + {children} + +
+ ); +}