From d4a1e0a184024949960ecbfffa6047e718b6aebc Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 26 Oct 2025 20:24:04 +0200 Subject: [PATCH] Migrate /vods to CSS modules --- .../user-page/routes/u.$identifier.vods.tsx | 6 +- .../vods/components/VodListing.module.css | 34 +++++++ app/features/vods/components/VodListing.tsx | 15 ++- app/features/vods/routes/vods.$id.module.css | 46 ++++++++++ app/features/vods/routes/vods.$id.tsx | 15 ++- app/features/vods/routes/vods.module.css | 10 ++ app/features/vods/routes/vods.tsx | 7 +- app/features/vods/vods.css | 92 ------------------- 8 files changed, 108 insertions(+), 117 deletions(-) create mode 100644 app/features/vods/components/VodListing.module.css create mode 100644 app/features/vods/routes/vods.$id.module.css create mode 100644 app/features/vods/routes/vods.module.css delete mode 100644 app/features/vods/vods.css diff --git a/app/features/user-page/routes/u.$identifier.vods.tsx b/app/features/user-page/routes/u.$identifier.vods.tsx index f7f8cf6f6..3e07467bb 100644 --- a/app/features/user-page/routes/u.$identifier.vods.tsx +++ b/app/features/user-page/routes/u.$identifier.vods.tsx @@ -1,15 +1,13 @@ import { useLoaderData, useMatches } from "@remix-run/react"; import { AddNewButton } from "~/components/AddNewButton"; import { VodListing } from "~/features/vods/components/VodListing"; +import styles from "~/features/vods/routes/vods.module.css"; import invariant from "~/utils/invariant"; import type { SendouRouteHandle } from "~/utils/remix.server"; import { newVodPage } from "~/utils/urls"; - import { loader } from "../loaders/u.$identifier.vods.server"; export { loader }; -import "~/features/vods/vods.css"; - export const handle: SendouRouteHandle = { i18n: ["vods"], }; @@ -24,7 +22,7 @@ export default function UserVodsPage() {