From d1c724563f3fc6641ce461a68ae360510560bd68 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 5 Sep 2023 13:58:20 +0500 Subject: [PATCH] web: fix themes selection not showing themes --- .../dialogs/settings/components/themes-selector.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/web/src/dialogs/settings/components/themes-selector.tsx b/apps/web/src/dialogs/settings/components/themes-selector.tsx index 19b525a17..0b9c4cf6e 100644 --- a/apps/web/src/dialogs/settings/components/themes-selector.tsx +++ b/apps/web/src/dialogs/settings/components/themes-selector.tsx @@ -18,7 +18,7 @@ along with this program. If not, see . */ import { httpBatchLink } from "@trpc/client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; -import { useCallback, useRef, useState } from "react"; +import { useCallback, useState } from "react"; import { Box, Button, Flex, Input, Text } from "@theme-ui/components"; import { CheckCircleOutline, Loading } from "../../../components/icons"; import { @@ -74,7 +74,6 @@ function ThemesList() { ); const [isApplying, setIsApplying] = useState(false); - const parentScrollRef = useRef(); const setCurrentTheme = useThemeStore((store) => store.setTheme); const user = useUserStore((store) => store.user); const darkTheme = useThemeStore((store) => store.darkTheme); @@ -198,11 +197,6 @@ function ThemesList() { { - if (ref && ref instanceof HTMLElement) - parentScrollRef.current = - (ref.closest(".ms-container") as HTMLElement) || undefined; - }} sx={{ ".virtuoso-grid-list": { display: "grid", @@ -216,7 +210,9 @@ function ThemesList() { ) : (