Skip to content

Commit

Permalink
chore: Fix Remix get started guide (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak authored Sep 20, 2024
1 parent cfba572 commit e3096f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/app/(docs)/getting-started/remix/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ of a FileRoute similar to an endpoint, it has:
To get full insight into what you can do with the FileRoutes, please refer to
the [File Router API](/file-routes).

```tsx {{ title: "routes/api.uploadthing.ts" }}
```tsx {{ title: "app/routes/api.uploadthing.ts" }}
import type { ActionFunctionArgs } from "@remix-run/node"; // or cloudflare/deno

import { createUploadthing, type FileRouter } from "uploadthing/remix";
Expand Down Expand Up @@ -97,7 +97,7 @@ exporting the action and loader functions.
serving it from `/api/uploadthing`.
</Note>

```ts {{ title: "routes/api.uploadthing.ts" }}
```ts {{ title: "app/routes/api.uploadthing.ts" }}
import { createRouteHandler } from "uploadthing/remix";

const uploadRouter = {
Expand All @@ -117,16 +117,16 @@ export const { action, loader } = createRouteHandler({
## Create The UploadThing Components

```ts {{ title: "src/utils/uploadthing.ts" }}
```ts {{ title: "app/utils/uploadthing.ts" }}
import {
generateUploadButton,
generateUploadDropzone,
} from "@uploadthing/react";

import type { UploadRouter } from "~/routes/api.uploadthing";

export const UploadButton = generateUploadButton<OurFileRouter>();
export const UploadDropzone = generateUploadDropzone<OurFileRouter>();
export const UploadButton = generateUploadButton<UploadRouter>();
export const UploadDropzone = generateUploadDropzone<UploadRouter>();
```

### Add UploadThing's Styles
Expand Down

0 comments on commit e3096f5

Please sign in to comment.