aboutsummaryrefslogtreecommitdiff
path: root/src/components/VencordSettings
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-05 21:37:39 +0200
committerV <vendicated@riseup.net>2023-09-05 21:37:39 +0200
commit4c805d08be9c2ec5dcd2cb1b7bb686f7e2636a9d (patch)
tree2f893fbc8eefc2e1598bdb2bcfe0128ca982f5b9 /src/components/VencordSettings
parent9b987d1e5688f3fbac5cd2aa8f90c3d646f450af (diff)
downloadVencord-4c805d08be9c2ec5dcd2cb1b7bb686f7e2636a9d.tar.gz
Vencord-4c805d08be9c2ec5dcd2cb1b7bb686f7e2636a9d.tar.bz2
Vencord-4c805d08be9c2ec5dcd2cb1b7bb686f7e2636a9d.zip
[skip ci] PatchHelper: Fix copy button style
Diffstat (limited to 'src/components/VencordSettings')
-rw-r--r--src/components/VencordSettings/PatchHelperTab.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/VencordSettings/PatchHelperTab.tsx b/src/components/VencordSettings/PatchHelperTab.tsx
index d5bd94c..0b869a5 100644
--- a/src/components/VencordSettings/PatchHelperTab.tsx
+++ b/src/components/VencordSettings/PatchHelperTab.tsx
@@ -17,6 +17,7 @@
*/
import { CheckedTextInput } from "@components/CheckedTextInput";
+import { CodeBlock } from "@components/CodeBlock";
import { debounce } from "@utils/debounce";
import { Margins } from "@utils/margins";
import { canonicalizeMatch, canonicalizeReplace } from "@utils/patches";
@@ -299,7 +300,7 @@ function PatchHelper() {
{!!(find && match && replacement) && (
<>
<Forms.FormTitle className={Margins.top20}>Code</Forms.FormTitle>
- <div style={{ userSelect: "text" }}>{Parser.parse(makeCodeblock(code, "ts"))}</div>
+ <CodeBlock lang="js" content={code} />
<Button onClick={() => Clipboard.copy(code)}>Copy to Clipboard</Button>
</>
)}