From daf94fd99c2323e29e1a35131de6c7eaf868eebb Mon Sep 17 00:00:00 2001 From: newwares <45801973+waresnew@users.noreply.github.com> Date: Wed, 15 May 2024 16:32:42 -0400 Subject: [PATCH] formatting + readme --- src/plugins/findReply/README.md | 5 +++++ src/plugins/findReply/ReplyNavigator.tsx | 2 +- src/plugins/findReply/index.tsx | 4 ++-- src/plugins/findReply/styles.css | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 src/plugins/findReply/README.md diff --git a/src/plugins/findReply/README.md b/src/plugins/findReply/README.md new file mode 100644 index 000000000..91d00ef4b --- /dev/null +++ b/src/plugins/findReply/README.md @@ -0,0 +1,5 @@ +# FindReply + +Lets you jump to the replies to a message. Makes it easier to follow past conversations/Q&A's. + +![](https://github.com/Vendicated/Vencord/assets/45801973/33f28cb1-349d-41ff-83e7-c265c8d3b0e2) diff --git a/src/plugins/findReply/ReplyNavigator.tsx b/src/plugins/findReply/ReplyNavigator.tsx index 0db830bfc..a2891e9f7 100644 --- a/src/plugins/findReply/ReplyNavigator.tsx +++ b/src/plugins/findReply/ReplyNavigator.tsx @@ -56,7 +56,7 @@ export default function ReplyNavigator({ replies }: { replies: Message[]; }) { totalCount={replies.length} onPageChange={processPageChange} /> - setVisible(false)}/> + setVisible(false)} /> ); diff --git a/src/plugins/findReply/index.tsx b/src/plugins/findReply/index.tsx index 9d3fb35a1..83a845af7 100644 --- a/src/plugins/findReply/index.tsx +++ b/src/plugins/findReply/index.tsx @@ -33,7 +33,7 @@ export const jumper: any = findByPropsLazy("jumpToMessage"); const FindReplyIcon = () => { return ; }; let root: Root | null = null; @@ -103,7 +103,7 @@ export default definePlugin({ document.querySelector("[class^=base_]")!.appendChild(element); root = ReactDOM.createRoot(element); } - root!.render(); + root!.render(); } } else { Toasts.show({ diff --git a/src/plugins/findReply/styles.css b/src/plugins/findReply/styles.css index c1438f418..8fdca3e6e 100644 --- a/src/plugins/findReply/styles.css +++ b/src/plugins/findReply/styles.css @@ -5,4 +5,4 @@ .vc-findreply-close { align-items: inherit !important; line-height: 0 !important; -} +} \ No newline at end of file