Date: Sun, 25 Aug 2024 19:04:12 -0800
Subject: [PATCH 3/9] Small fixes
---
src/plugins/CopyFileContents/index.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/CopyFileContents/index.tsx b/src/plugins/CopyFileContents/index.tsx
index 8349ca1c34..e7724351d4 100644
--- a/src/plugins/CopyFileContents/index.tsx
+++ b/src/plugins/CopyFileContents/index.tsx
@@ -27,11 +27,11 @@ export default definePlugin({
find: ".Messages.PREVIEW_BYTES_LEFT.format(",
replacement: {
match: /\.footerGap.+?url:\i,fileName:\i,fileSize:\i}\),(?<=fileContents:(\i),bytesLeft:(\i).+?)/g,
- replace: "$&$self.AddCopyButton({ fileContents: $1, bytesLeft: $2 }),"
+ replace: "$&$self.addCopyButton({fileContents:$1,bytesLeft:$2}),"
}
}
],
- AddCopyButton: ErrorBoundary.wrap(({ fileContents, bytesLeft }: { fileContents: string, bytesLeft: number; }) => {
+ addCopyButton: ErrorBoundary.wrap(({ fileContents, bytesLeft }: { fileContents: string, bytesLeft: number; }) => {
const [recentlyCopied, setRecentlyCopied] = useState(false);
return (
0 ? "File too large to copy" : "Copy File Contents"}>
From 53fa510ed82d21ed8af02cd7f545b039fa91c353 Mon Sep 17 00:00:00 2001
From: Obsidian <108832807+Obsidianninja11@users.noreply.github.com>
Date: Fri, 30 Aug 2024 04:10:04 -0800
Subject: [PATCH 4/9] Formatting
---
src/plugins/CopyFileContents/index.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/plugins/CopyFileContents/index.tsx b/src/plugins/CopyFileContents/index.tsx
index e7724351d4..7bbd48b77c 100644
--- a/src/plugins/CopyFileContents/index.tsx
+++ b/src/plugins/CopyFileContents/index.tsx
@@ -13,7 +13,7 @@ import definePlugin from "@utils/types";
import { Clipboard, Tooltip, useState } from "@webpack/common";
const CheckMarkIcon = () => {
- return