From 92a17e8faf66a57f6e72242498bd32efa666f17a Mon Sep 17 00:00:00 2001 From: bravo-kernel Date: Fri, 17 May 2024 17:35:06 +0200 Subject: [PATCH] fix(darkmode): use ActionFunctionArgs (#477) --- dark-mode/app/routes/action.set-theme.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dark-mode/app/routes/action.set-theme.tsx b/dark-mode/app/routes/action.set-theme.tsx index 14d2f393..f8c5fbeb 100644 --- a/dark-mode/app/routes/action.set-theme.tsx +++ b/dark-mode/app/routes/action.set-theme.tsx @@ -1,10 +1,10 @@ -import type { ActionArgs } from "@remix-run/node"; +import type { ActionFunctionArgs } from "@remix-run/node"; import { json, redirect } from "@remix-run/node"; import { isTheme } from "~/utils/theme-provider"; import { getThemeSession } from "~/utils/theme.server"; -export const action = async ({ request }: ActionArgs) => { +export const action = async ({ request }: ActionFunctionArgs) => { const themeSession = await getThemeSession(request); const requestText = await request.text(); const form = new URLSearchParams(requestText);