From 837d1fc08334f569da8fe332ee72ef8c8560d9ef Mon Sep 17 00:00:00 2001 From: TheKodeToad Date: Tue, 26 Sep 2023 20:47:12 +0100 Subject: web: fix themes tab (#1756) --- src/components/Icons.tsx | 19 +++++++++++++++++++ src/components/VencordSettings/ThemesTab.tsx | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) (limited to 'src/components') diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index 26364fc..93b1323 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -236,3 +236,22 @@ export function ReplyIcon(props: IconProps) { ); } + +export function DeleteIcon(props: IconProps) { + return ( + + + + + ); +} diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx index 37d06c7..573f3b9 100644 --- a/src/components/VencordSettings/ThemesTab.tsx +++ b/src/components/VencordSettings/ThemesTab.tsx @@ -20,6 +20,7 @@ import { useSettings } from "@api/Settings"; import { classNameFactory } from "@api/Styles"; import { ErrorCard } from "@components/ErrorCard"; import { Flex } from "@components/Flex"; +import { DeleteIcon } from "@components/Icons"; import { Link } from "@components/Link"; import { IsFirefox } from "@utils/constants"; import { Margins } from "@utils/margins"; @@ -42,7 +43,6 @@ type FileInput = ComponentType<{ }>; const InviteActions = findByPropsLazy("resolveInvite"); -const TrashIcon = findByCodeLazy("M5 6.99902V18.999C5 20.101 5.897 20.999"); const FileInput: FileInput = findByCodeLazy("activateUploadDialogue="); const TextAreaProps = findLazy(m => typeof m.textarea === "string"); @@ -114,7 +114,7 @@ function ThemeCard({ theme, enabled, onChange, onDelete }: ThemeCardProps) { infoButton={ IS_WEB && (
- +
) } -- cgit