diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-09-26 20:47:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 21:47:12 +0200 |
commit | 837d1fc08334f569da8fe332ee72ef8c8560d9ef (patch) | |
tree | ea7e55e23874f5822076a2ae3bfad7d44eb9ce86 /src/plugins/textReplace | |
parent | 608a67c9ae4eea61bc532398ed615a4984db2ffc (diff) | |
download | Vencord-837d1fc08334f569da8fe332ee72ef8c8560d9ef.tar.gz Vencord-837d1fc08334f569da8fe332ee72ef8c8560d9ef.tar.bz2 Vencord-837d1fc08334f569da8fe332ee72ef8c8560d9ef.zip |
web: fix themes tab (#1756)
Diffstat (limited to 'src/plugins/textReplace')
-rw-r--r-- | src/plugins/textReplace/index.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/textReplace/index.tsx b/src/plugins/textReplace/index.tsx index 45fb6f9..5d66d22 100644 --- a/src/plugins/textReplace/index.tsx +++ b/src/plugins/textReplace/index.tsx @@ -20,6 +20,7 @@ import { DataStore } from "@api/index"; import { addPreSendListener, removePreSendListener } from "@api/MessageEvents"; import { definePluginSettings } from "@api/Settings"; import { Flex } from "@components/Flex"; +import { DeleteIcon } from "@components/Icons"; import { Devs } from "@utils/constants"; import { Logger } from "@utils/Logger"; import { useForceUpdater } from "@utils/react"; @@ -173,6 +174,7 @@ function TextReplace({ title, rulesArray, rulesKey, update }: TextReplaceProps) onClick={() => onClickRemove(index)} style={{ background: "none", + color: "var(--status-danger)", ...(index === rulesArray.length - 1 ? { visibility: "hidden", @@ -182,11 +184,7 @@ function TextReplace({ title, rulesArray, rulesKey, update }: TextReplaceProps) ) }} > - <svg width="24" height="24" viewBox="0 0 24 24"> - <title>Delete Rule</title> - <path fill="var(--status-danger)" d="M15 3.999V2H9V3.999H3V5.999H21V3.999H15Z" /> - <path fill="var(--status-danger)" d="M5 6.99902V18.999C5 20.101 5.897 20.999 7 20.999H17C18.103 20.999 19 20.101 19 18.999V6.99902H5ZM11 17H9V11H11V17ZM15 17H13V11H15V17Z" /> - </svg> + <DeleteIcon /> </Button> </Flex> {isRegexRules && renderFindError(rule.find)} |