From 736477671542f0d1554d45faba8b5249d8e913c1 Mon Sep 17 00:00:00 2001
From: V <vendicated@riseup.net>
Date: Sat, 9 Sep 2023 19:51:30 +0200
Subject: Dearrow: Fix button part 2

---
 src/plugins/dearrow/index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/plugins/dearrow/index.tsx')

diff --git a/src/plugins/dearrow/index.tsx b/src/plugins/dearrow/index.tsx
index f896531..88d0dd6 100644
--- a/src/plugins/dearrow/index.tsx
+++ b/src/plugins/dearrow/index.tsx
@@ -74,7 +74,7 @@ async function embedDidMount(this: Component<Props>) {
     }
 }
 
-function renderButton(component: Component<Props>) {
+function DearrowButton({ component }: { component: Component<Props>; }) {
     const { embed } = component.props;
     if (!embed?.dearrow) return null;
 
@@ -137,7 +137,7 @@ export default definePlugin({
     renderButton(component: Component<Props>) {
         return (
             <ErrorBoundary noop>
-                {renderButton(component)}
+                <DearrowButton component={component} />
             </ErrorBoundary>
         );
     },
-- 
cgit 

