Skip to content

Commit 489f675

Browse files
feat: code format/styling
1 parent 1c2f055 commit 489f675

26 files changed

+176
-70
lines changed

app/routes/_auth+/auth.$provider.callback.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { redirect, type LoaderFunctionArgs } from 'react-router';
1+
import { redirect, type LoaderFunctionArgs } from 'react-router'
22
import {
33
authenticator,
44
getSessionExpirationDate,
@@ -39,14 +39,16 @@ export async function loader({ request, params }: LoaderFunctionArgs) {
3939
const authResult = await authenticator
4040
.authenticate(providerName, request, { throwOnError: true })
4141
.then(
42-
(data) => (({
43-
success: true,
44-
data
45-
}) as const),
46-
(error) => (({
47-
success: false,
48-
error
49-
}) as const),
42+
(data) =>
43+
({
44+
success: true,
45+
data,
46+
}) as const,
47+
(error) =>
48+
({
49+
success: false,
50+
error,
51+
}) as const,
5052
)
5153

5254
if (!authResult.success) {

app/routes/_auth+/forgot-password.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ import { getFormProps, getInputProps, useForm } from '@conform-to/react'
22
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
33
import { type SEOHandle } from '@nasa-gcn/remix-seo'
44
import * as E from '@react-email/components'
5-
import { data, redirect, type ActionFunctionArgs, type MetaFunction } from 'react-router';
6-
import { Link, useFetcher } from 'react-router';
5+
import {
6+
data,
7+
redirect,
8+
type ActionFunctionArgs,
9+
type MetaFunction,
10+
Link,
11+
useFetcher,
12+
} from 'react-router'
713
import { HoneypotInputs } from 'remix-utils/honeypot/react'
814
import { z } from 'zod'
915
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'

app/routes/_auth+/login.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { invariant } from '@epic-web/invariant'
2-
import { redirect } from 'react-router';
2+
import { redirect } from 'react-router'
33
import { safeRedirect } from 'remix-utils/safe-redirect'
44
import { twoFAVerificationType } from '#app/routes/settings+/profile.two-factor.tsx'
55
import { getUserId, sessionKey } from '#app/utils/auth.server.ts'

app/routes/_auth+/login.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
import { getFormProps, getInputProps, useForm } from '@conform-to/react'
22
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
33
import { type SEOHandle } from '@nasa-gcn/remix-seo'
4-
import { data, type ActionFunctionArgs, type LoaderFunctionArgs, type MetaFunction } from 'react-router';
5-
import { Form, Link, useActionData, useSearchParams } from 'react-router';
4+
import {
5+
data,
6+
type ActionFunctionArgs,
7+
type LoaderFunctionArgs,
8+
type MetaFunction,
9+
Form,
10+
Link,
11+
useActionData,
12+
useSearchParams,
13+
} from 'react-router'
614
import { HoneypotInputs } from 'remix-utils/honeypot/react'
715
import { z } from 'zod'
816
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'

app/routes/_auth+/onboarding.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { getFormProps, getInputProps, useForm } from '@conform-to/react'
22
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
33
import {
4-
data,
5-
redirect,
6-
type LoaderFunctionArgs,
7-
type ActionFunctionArgs,
8-
type MetaFunction,
9-
} from 'react-router';
10-
import { Form, useActionData, useLoaderData, useSearchParams } from 'react-router';
4+
data,
5+
redirect,
6+
type LoaderFunctionArgs,
7+
type ActionFunctionArgs,
8+
type MetaFunction,
9+
Form,
10+
useActionData,
11+
useLoaderData,
12+
useSearchParams,
13+
} from 'react-router'
1114
import { HoneypotInputs } from 'remix-utils/honeypot/react'
1215
import { safeRedirect } from 'remix-utils/safe-redirect'
1316
import { z } from 'zod'

app/routes/_auth+/onboarding_.$provider.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ import {
66
} from '@conform-to/react'
77
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
88
import {
9-
redirect,
10-
data,
11-
type ActionFunctionArgs,
12-
type LoaderFunctionArgs,
13-
type MetaFunction,
14-
} from 'react-router';
15-
import { type Params, Form, useActionData, useLoaderData, useSearchParams } from 'react-router';
9+
redirect,
10+
data,
11+
type ActionFunctionArgs,
12+
type LoaderFunctionArgs,
13+
type MetaFunction,
14+
type Params,
15+
Form,
16+
useActionData,
17+
useLoaderData,
18+
useSearchParams,
19+
} from 'react-router'
1620
import { safeRedirect } from 'remix-utils/safe-redirect'
1721
import { z } from 'zod'
1822
import { CheckboxField, ErrorList, Field } from '#app/components/forms.tsx'

app/routes/_auth+/reset-password.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import { getFormProps, getInputProps, useForm } from '@conform-to/react'
22
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
33
import { type SEOHandle } from '@nasa-gcn/remix-seo'
44
import {
5-
data,
6-
redirect,
7-
type ActionFunctionArgs,
8-
type LoaderFunctionArgs,
9-
type MetaFunction,
10-
} from 'react-router';
11-
import { Form, useActionData, useLoaderData } from 'react-router';
5+
data,
6+
redirect,
7+
type ActionFunctionArgs,
8+
type LoaderFunctionArgs,
9+
type MetaFunction,
10+
Form,
11+
useActionData,
12+
useLoaderData,
13+
} from 'react-router'
1214
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'
1315
import { ErrorList, Field } from '#app/components/forms.tsx'
1416
import { StatusButton } from '#app/components/ui/status-button.tsx'

app/routes/_auth+/signup.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ import { getFormProps, getInputProps, useForm } from '@conform-to/react'
22
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
33
import { type SEOHandle } from '@nasa-gcn/remix-seo'
44
import * as E from '@react-email/components'
5-
import { data, redirect, type ActionFunctionArgs, type MetaFunction } from 'react-router';
6-
import { Form, useActionData, useSearchParams } from 'react-router';
5+
import {
6+
data,
7+
redirect,
8+
type ActionFunctionArgs,
9+
type MetaFunction,
10+
Form,
11+
useActionData,
12+
useSearchParams,
13+
} from 'react-router'
714
import { HoneypotInputs } from 'remix-utils/honeypot/react'
815
import { z } from 'zod'
916
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'

app/routes/_auth+/verify.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { getFormProps, getInputProps, useForm } from '@conform-to/react'
22
import { getZodConstraint, parseWithZod } from '@conform-to/zod'
33
import { type SEOHandle } from '@nasa-gcn/remix-seo'
4-
import { type ActionFunctionArgs } from 'react-router';
5-
import { Form, useActionData, useSearchParams } from 'react-router';
4+
import {
5+
type ActionFunctionArgs,
6+
Form,
7+
useActionData,
8+
useSearchParams,
9+
} from 'react-router'
610
import { HoneypotInputs } from 'remix-utils/honeypot/react'
711
import { z } from 'zod'
812
import { GeneralErrorBoundary } from '#app/components/error-boundary.tsx'

app/routes/_seo+/sitemap[.]xml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { generateSitemap } from '@nasa-gcn/remix-seo'
2-
import { type ServerBuild, type LoaderFunctionArgs } from 'react-router';
2+
import { type ServerBuild, type LoaderFunctionArgs } from 'react-router'
33
import { getDomainUrl } from '#app/utils/misc.tsx'
44

55
export async function loader({ request, context }: LoaderFunctionArgs) {

0 commit comments

Comments
 (0)