Skip to content

Commit

Permalink
fix(darkmode): use ActionFunctionArgs (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
bravo-kernel committed May 17, 2024
1 parent c06aa72 commit 92a17e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dark-mode/app/routes/action.set-theme.tsx
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 92a17e8

Please sign in to comment.