Move Divider to _components folder in trust auth pages

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-23 12:58:05 +01:00
parent 42129f7ce2
commit bcd4fc1a2f
2 changed files with 12 additions and 11 deletions

View File

@@ -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<typeof schema>;
const timerDurationSeconds = 60;
function Divider({ children }: { children: React.ReactNode }) {
return (
<div className="relative my-6 w-full">
<div className="border-t border-border-mid" />
<span className="px-4 text-xs uppercase text-txt-secondary bg-level-0 absolute top-0 left-1/2 -translate-1/2">
{children}
</span>
</div>
);
}
function OIDCButtons({
providers,
safeContinueUrl,

View File

@@ -0,0 +1,10 @@
export function Divider({ children }: { children: React.ReactNode }) {
return (
<div className="relative my-6 w-full">
<div className="border-t border-border-mid" />
<span className="px-4 text-xs uppercase text-txt-secondary bg-level-0 absolute top-0 left-1/2 -translate-1/2">
{children}
</span>
</div>
);
}