Skip to content

Commit

Permalink
lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed Jan 26, 2025
1 parent 3e20f9d commit 117dabf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 36 deletions.
42 changes: 21 additions & 21 deletions app/components/ui/separator.tsx
Original file line number Diff line number Diff line change
@@ -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<typeof SeparatorPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
React.ComponentRef<typeof SeparatorPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(
(
{ className, orientation = "horizontal", decorative = true, ...props },
ref
) => (
<SeparatorPrimitive.Root
ref={ref}
decorative={decorative}
orientation={orientation}
className={cn(
"shrink-0 bg-border",
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
className
)}
{...props}
/>
)
(
{ className, orientation = 'horizontal', decorative = true, ...props },
ref,
) => (
<SeparatorPrimitive.Root
ref={ref}
decorative={decorative}
orientation={orientation}
className={cn(
'shrink-0 bg-border',
orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
className,
)}
{...props}
/>
),
)
Separator.displayName = SeparatorPrimitive.Root.displayName

Expand Down
16 changes: 4 additions & 12 deletions app/routes/_auth+/login.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions react-router.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 117dabf

Please sign in to comment.