Skip to content

Commit 92a17e8

Browse files
authored
fix(darkmode): use ActionFunctionArgs (#477)
1 parent c06aa72 commit 92a17e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dark-mode/app/routes/action.set-theme.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { ActionArgs } from "@remix-run/node";
1+
import type { ActionFunctionArgs } from "@remix-run/node";
22
import { json, redirect } from "@remix-run/node";
33

44
import { isTheme } from "~/utils/theme-provider";
55
import { getThemeSession } from "~/utils/theme.server";
66

7-
export const action = async ({ request }: ActionArgs) => {
7+
export const action = async ({ request }: ActionFunctionArgs) => {
88
const themeSession = await getThemeSession(request);
99
const requestText = await request.text();
1010
const form = new URLSearchParams(requestText);

0 commit comments

Comments
 (0)