diff --git a/app/components/ui/separator.tsx b/app/components/ui/separator.tsx index 3ddc019..0e29c10 100644 --- a/app/components/ui/separator.tsx +++ b/app/components/ui/separator.tsx @@ -1,28 +1,28 @@ -import * as React from "react" -import * as SeparatorPrimitive from "@radix-ui/react-separator" +import * as SeparatorPrimitive from '@radix-ui/react-separator' +import * as React from 'react' -import { cn } from "#app/utils/ui.ts" +import { cn } from '#app/utils/ui.ts' const Separator = React.forwardRef< - React.ComponentRef, - React.ComponentPropsWithoutRef + React.ComponentRef, + React.ComponentPropsWithoutRef >( - ( - { className, orientation = "horizontal", decorative = true, ...props }, - ref - ) => ( - - ) + ( + { className, orientation = 'horizontal', decorative = true, ...props }, + ref, + ) => ( + + ), ) Separator.displayName = SeparatorPrimitive.Root.displayName diff --git a/app/routes/_auth+/login.tsx b/app/routes/_auth+/login.tsx index cb9c188..0fd628f 100644 --- a/app/routes/_auth+/login.tsx +++ b/app/routes/_auth+/login.tsx @@ -1,14 +1,7 @@ import { getFormProps, getInputProps, useForm } from '@conform-to/react' import { getZodConstraint, parseWithZod } from '@conform-to/zod' import { type SEOHandle } from '@nasa-gcn/remix-seo' -import { - data, - Form, - redirect, - useActionData, - useLoaderData, - useSearchParams, -} from 'react-router' +import { data, Form, useActionData, useSearchParams } from 'react-router' import { z } from 'zod' import { Field } from '#app/components/forms.tsx' import { StatusButton } from '#app/components/status-button.tsx' @@ -19,18 +12,17 @@ import { CardHeader, CardTitle, } from '#app/components/ui/card.tsx' +import { Separator } from '#app/components/ui/separator.tsx' import { requireAnonymous } from '#app/utils/auth/auth.server.ts' import { ProviderConnectionForm, providerNames, } from '#app/utils/auth/connections.tsx' import { createAuthenticator } from '#app/utils/auth/magic-link.server.ts' +import { combineHeaders } from '#app/utils/request.server.ts' +import { createToastHeaders } from '#app/utils/toast.server.ts' import { useIsPending } from '#app/utils/ui.ts' import { type Route } from './+types/login' -import { parse } from 'cookie' -import { Separator } from '#app/components/ui/separator.tsx' -import { createToastHeaders, getToast } from '#app/utils/toast.server.ts' -import { combineHeaders } from '#app/utils/request.server.ts' export const handle: SEOHandle = { getSitemapEntries: () => null, diff --git a/react-router.config.ts b/react-router.config.ts index e3e1128..e47ac22 100644 --- a/react-router.config.ts +++ b/react-router.config.ts @@ -2,7 +2,7 @@ import { type Config } from '@react-router/dev/config' export default { ssr: true, - future: { - unstable_optimizeDeps: true - } + future: { + unstable_optimizeDeps: true, + }, } satisfies Config