Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remix server target #24

Merged
merged 10 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Undo temporary gotchas for making remix work
  • Loading branch information
mayank1513 committed Dec 7, 2023
commit dfd6b391a0ed36c5745350ddf71656f1952b0851
2 changes: 1 addition & 1 deletion examples/remix/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { cssBundleHref } from "@remix-run/css-bundle";
import type { LinksFunction } from "@remix-run/node";
import { Link, Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from "@remix-run/react";
import { SharedRootLayout } from "shared-ui";
import { RemixServerTarget, loader } from "react18-themes";
import { RemixServerTarget, loader } from "react18-themes/server";

export const links: LinksFunction = () => [...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : [])];
export { loader };
Expand Down
1 change: 0 additions & 1 deletion packages/react18-themes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

/** to make sure import statements remain same for monorepo setup and install via npm */
export * from "./src";
export * from "./src/server/remix";
2 changes: 1 addition & 1 deletion packages/react18-themes/server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/** to make sure import statements remain same for monorepo setup and install via npm */

export * from "./src/server/index";
export * from "./src/server";
2 changes: 1 addition & 1 deletion packages/react18-themes/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* @import "./src/styles.css"; */
@import "./src/styles.css";
2 changes: 1 addition & 1 deletion packages/shared-ui/src/root-layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./globals.css";
import "react18-themes/src/styles.css";
import "react18-themes/styles.css";
import { ColorSwitch, ThemeSwitcher } from "react18-themes";
import { ForkMe } from "@mayank1513/fork-me/server/index.js"; // import directory not supported in remix
import type { HTMLProps } from "react";
Expand Down