Skip to content

Commit

Permalink
chore(website): collapse import into one
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Jan 29, 2025
1 parent 919ed60 commit 771249e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
7 changes: 5 additions & 2 deletions apps/website/app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import { createReadableStreamFromReadable } from "@react-router/node";
import { migrate } from "drizzle-orm/postgres-js/migrator";
import { isbot } from "isbot";
import { renderToPipeableStream } from "react-dom/server";
import type { AppLoadContext, EntryContext } from "react-router";
import { ServerRouter } from "react-router";
import {
type AppLoadContext,
type EntryContext,
ServerRouter,
} from "react-router";
import { db } from "./lib/config.server";

migrate(db, { migrationsFolder: "app/drizzle/migrations" }).catch((error) => {
Expand Down
8 changes: 3 additions & 5 deletions apps/website/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import {
Link,
Links,
type LinksFunction,
type LoaderFunctionArgs,
Meta,
type MetaFunction,
Outlet,
Scripts,
ScrollRestoration,
Expand All @@ -11,11 +14,6 @@ import {
} from "react-router";
import { HoneypotProvider } from "remix-utils/honeypot/react";
import "./tailwind.css";
import type {
LinksFunction,
LoaderFunctionArgs,
MetaFunction,
} from "react-router";
import { $path } from "remix-routes";
import { withFragment } from "ufo";
import { Toaster } from "./lib/components/ui/sonner";
Expand Down
10 changes: 8 additions & 2 deletions apps/website/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ import {
import dayjs from "dayjs";
import duration from "dayjs/plugin/duration";
import { REGEXP_ONLY_DIGITS } from "input-otp";
import { data, redirect } from "react-router";
import { Form, Link, useLoaderData, useRouteLoaderData } from "react-router";
import {
Form,
Link,
data,
redirect,
useLoaderData,
useRouteLoaderData,
} from "react-router";
import { $path } from "remix-routes";
import { HoneypotInputs } from "remix-utils/honeypot/react";
import { SpamError } from "remix-utils/honeypot/server";
Expand Down
3 changes: 1 addition & 2 deletions apps/website/app/routes/me.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import { Unkey } from "@unkey/api";
import dayjs from "dayjs";
import { eq } from "drizzle-orm";
import { useEffect, useState } from "react";
import type { MetaArgs } from "react-router";
import { Form, redirect, useLoaderData } from "react-router";
import { Form, type MetaArgs, redirect, useLoaderData } from "react-router";
import { toast } from "sonner";
import { match } from "ts-pattern";
import { withQuery } from "ufo";
Expand Down

0 comments on commit 771249e

Please sign in to comment.