Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix: disable non-existent windi styles
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Dec 4, 2021
1 parent 57a12c0 commit 1b7ca8e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/routes/$lang/$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const meta: MetaFunction = ({ data, parentsData, location, params }) => {
};
};

export let links: LinksFunction = () => {
export const links: LinksFunction = () => {
return [
// { rel: "stylesheet", href: globalStylesUrl },
// {
Expand Down
10 changes: 5 additions & 5 deletions app/routes/demos/about.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Outlet } from "remix";
import type { MetaFunction, LinksFunction } from "remix";

import stylesUrl from "~/styles/windicss/demos-about.css";
// import stylesUrl from "~/styles/windicss/demos-about.css";

// export let links: LinksFunction = () => {
// return [{ rel: "stylesheet", href: stylesUrl }];
// };

export let meta: MetaFunction = () => {
return {
title: "About Remix",
};
};

export let links: LinksFunction = () => {
return [{ rel: "stylesheet", href: stylesUrl }];
};

export default function Index() {
return (
<div className="about">
Expand Down
8 changes: 4 additions & 4 deletions app/routes/demos/about/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Link, LinksFunction } from "remix";
import styles from "~/styles/windicss/demos-about.css";
// import styles from "~/styles/windicss/demos-about.css";

export let links: LinksFunction = () => {
return [{ rel: "stylesheet", href: styles }];
};
// export let links: LinksFunction = () => {
// return [{ rel: "stylesheet", href: styles }];
// };

export default function AboutIndex() {
return (
Expand Down
9 changes: 5 additions & 4 deletions app/routes/demos/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import {
redirect,
LinksFunction,
} from "remix";
import stylesUrl from "~/styles/windicss/demos-actions.css";
// import stylesUrl from "~/styles/windicss/demos-actions.css";

// export let links: LinksFunction = () => {
// return [{ rel: "stylesheet", href: stylesUrl }];
// };

export function meta() {
return { title: "Actions Demo" };
}
export let links: LinksFunction = () => {
return [{ rel: "stylesheet", href: stylesUrl }];
};

// When your form sends a POST, the action is called on the server.
// - https://remix.run/api/conventions#action
Expand Down
10 changes: 5 additions & 5 deletions app/routes/demos/params.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import {
Outlet,
LinksFunction,
} from "remix";
import stylesUrl from "~/styles/windicss/demos-params.css";
// import stylesUrl from "~/styles/windicss/demos-params.css";

// export let links: LinksFunction = () => {
// return [{ rel: "stylesheet", href: stylesUrl }];
// };

export function meta() {
return { title: "Boundaries Demo" };
}

export let links: LinksFunction = () => {
return [{ rel: "stylesheet", href: stylesUrl }];
};

export default function Boundaries() {
return (
<div className="remix__page">
Expand Down
8 changes: 4 additions & 4 deletions app/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { MetaFunction, LoaderFunction, LinksFunction } from "remix";
import { useLoaderData, json, Link } from "remix";
// import invariant from "tiny-invariant";
import styles from "~/styles/windicss/index.css";
// import styles from "~/styles/windicss/index.css";

export let links: LinksFunction = () => {
return [{ rel: "stylesheet", href: styles }];
};
// export let links: LinksFunction = () => {
// return [{ rel: "stylesheet", href: styles }];
// };

type IndexData = {
resources: Array<{ name: string; url: string }>;
Expand Down

0 comments on commit 1b7ca8e

Please sign in to comment.