From b0b4320839c8fa505d0f49a9cfd1248a92572748 Mon Sep 17 00:00:00 2001 From: KalebSchmidlkofer Date: Thu, 26 Dec 2024 23:14:19 -0800 Subject: [PATCH] feat(modrinth): selecting filters auto updates mods --- .../components/elements/ScrollMenu.tsx | 4 +- .../components/server/modrinth/Checkbox.tsx | 44 +++++++++++++++++++ .../server/modrinth/DisplayMods.tsx | 37 +++++++++------- .../server/modrinth/EnvironmentSelector.tsx | 18 +++++--- .../server/modrinth/GameVersionSelector.tsx | 2 + .../server/modrinth/LoaderSelector.tsx | 7 +-- .../server/modrinth/ModrinthContainer.tsx | 9 ++-- .../components/server/modrinth/config.ts | 8 ++++ 8 files changed, 97 insertions(+), 32 deletions(-) create mode 100644 resources/scripts/components/server/modrinth/Checkbox.tsx diff --git a/resources/scripts/components/elements/ScrollMenu.tsx b/resources/scripts/components/elements/ScrollMenu.tsx index c6d50fd2c..0bae8a552 100644 --- a/resources/scripts/components/elements/ScrollMenu.tsx +++ b/resources/scripts/components/elements/ScrollMenu.tsx @@ -4,6 +4,8 @@ import { Checkbox } from '@/components/elements/CheckboxLabel'; import { cn } from '@/lib/utils'; +import { fetchNewProjects } from '../server/modrinth/config'; + interface Props { appVersion; baseUrl: string; @@ -28,7 +30,7 @@ const ScrollMenu = React.forwardRef< return (
-