From 3ca0774cc4658e8b3a87e66ba2f2f1a8bdf96a84 Mon Sep 17 00:00:00 2001 From: joel Date: Fri, 12 Jan 2024 18:53:04 -0800 Subject: [PATCH] chore: fix eslint stuff --- app/routes/_content+/courses+/$course+/$lesson.tsx | 4 ++-- app/routes/_content+/courses+/$course+/index.tsx | 6 +++--- app/routes/_content+/courses+/index.tsx | 14 ++++++-------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/app/routes/_content+/courses+/$course+/$lesson.tsx b/app/routes/_content+/courses+/$course+/$lesson.tsx index 1599b1f..ea3143a 100644 --- a/app/routes/_content+/courses+/$course+/$lesson.tsx +++ b/app/routes/_content+/courses+/$course+/$lesson.tsx @@ -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) { diff --git a/app/routes/_content+/courses+/$course+/index.tsx b/app/routes/_content+/courses+/$course+/index.tsx index 14653f3..e6363a3 100644 --- a/app/routes/_content+/courses+/$course+/index.tsx +++ b/app/routes/_content+/courses+/$course+/index.tsx @@ -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) { diff --git a/app/routes/_content+/courses+/index.tsx b/app/routes/_content+/courses+/index.tsx index 2868616..851418c 100644 --- a/app/routes/_content+/courses+/index.tsx +++ b/app/routes/_content+/courses+/index.tsx @@ -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) }