diff --git a/.eslintrc.js b/.eslintrc.js index d5815af6..4ca926f9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -79,7 +79,7 @@ module.exports = { rules: { "import/no-cycle": "error", "import/order": [ - "error", + "warn", { alphabetize: { caseInsensitive: true, order: "asc" }, groups: ["builtin", "external", "internal", "parent", "sibling"], diff --git a/app/routes/curate.$courseId.tsx b/app/routes/curate.$courseId.tsx index 9ca90477..5bff343e 100644 --- a/app/routes/curate.$courseId.tsx +++ b/app/routes/curate.$courseId.tsx @@ -5,7 +5,6 @@ import { useActionData, useLoaderData, useSubmit } from "@remix-run/react"; import { ActionFunctionArgs, LoaderFunctionArgs, - json, } from "@remix-run/server-runtime"; import { Fragment, @@ -84,9 +83,9 @@ export const action = async ({ request }: ActionFunctionArgs) => { }, }); - return json({ + return { courseId, - }); + }; }; export const loader = async ({ request, params }: LoaderFunctionArgs) => { @@ -121,7 +120,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => { textGroupsCount, } = await getCurationState(courseId, page); - return json({ + return { course, page, seenTexts, @@ -148,7 +147,7 @@ export const loader = async ({ request, params }: LoaderFunctionArgs) => { }, }) .then((figures) => figures.map((f) => f.key)), - }); + }; }; export default function CuratePage() {