Skip to content

Commit

Permalink
Merge pull request #935 from Mause/server-cookies
Browse files Browse the repository at this point in the history
mark cookies.ts server side only
  • Loading branch information
Mause authored Dec 3, 2024
2 parents 8c4ddd3 + a48236d commit a9b4e37
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { Analytics } from "@vercel/analytics/react";
import { useLoaderDataReloading } from "./components/useRevalidateOnFocus";
import _ from "lodash";
import type { ReactNode } from "react";
import { colorModeCookie } from "./components/cookies";
import { colorModeCookie } from "./components/cookies.server";
type ColorModeWithAuto = Parameters<typeof ThemeProvider>[0]["colorMode"];

export const loader: LoaderFunction = async ({ request }) => {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useFetcher, useMatches } from "@remix-run/react";
import { useState } from "react";
import type { ActionFunction } from "@remix-run/node";
import { json } from "@remix-run/node";
import { colorModeCookie } from "~/components/cookies";
import { colorModeCookie } from "~/components/cookies.server";
type ColorModeWithAuto = NonNullable<
Parameters<typeof ThemeProvider>[0]["colorMode"]
>;
Expand Down

0 comments on commit a9b4e37

Please sign in to comment.