Skip to content

Commit

Permalink
chore: fix eslint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Jan 13, 2024
1 parent 209c87a commit 3ca0774
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/routes/_content+/courses+/$course+/$lesson.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { json, type LoaderFunctionArgs } from '@remix-run/node'
import {useLoaderData} from "#node_modules/@remix-run/react";
import { invariantResponse } from '@epic-web/invariant'
import { json, type LoaderFunctionArgs } from '@remix-run/node'
import {courses} from "#app/data/playlists-short"
import {useLoaderData} from "#node_modules/@remix-run/react";


export async function loader({ params }: LoaderFunctionArgs) {
Expand Down
6 changes: 3 additions & 3 deletions app/routes/_content+/courses+/$course+/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { json, type LoaderFunctionArgs } from '@remix-run/node'
import { invariantResponse } from '@epic-web/invariant'
import {courses} from "#app/data/playlists-short"
import {useLoaderData} from "#node_modules/@remix-run/react";
import { invariantResponse } from '@epic-web/invariant'
import { json, type LoaderFunctionArgs } from '@remix-run/node'
import {Link} from "@remix-run/react";
import {courses} from "#app/data/playlists-short"


export async function loader({ params }: LoaderFunctionArgs) {
Expand Down
14 changes: 6 additions & 8 deletions app/routes/_content+/courses+/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { json, redirect, type LoaderFunctionArgs } from '@remix-run/node'
import {courses} from "#app/data/playlists-short"
import {useLoaderData} from "#node_modules/@remix-run/react";
import {cn, useDelayedIsPending} from "#app/utils/misc.tsx";
import {ErrorList} from "#app/components/forms.tsx";
import {GeneralErrorBoundary} from "#app/components/error-boundary.tsx";
import { json } from '@remix-run/node'
import {Link} from "@remix-run/react";
import {GeneralErrorBoundary} from "#app/components/error-boundary.tsx";
import {ErrorList} from "#app/components/forms.tsx";
import {courses} from "#app/data/playlists-short"
import {cn, useDelayedIsPending} from "#app/utils/misc.tsx";

export async function loader({ request }: LoaderFunctionArgs) {
console.log(courses.length)

export async function loader() {
return json({ status: 'idle', courses } as const)
}

Expand Down

0 comments on commit 3ca0774

Please sign in to comment.