aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/dearrow/index.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-09 19:51:30 +0200
committerV <vendicated@riseup.net>2023-09-09 19:51:30 +0200
commit736477671542f0d1554d45faba8b5249d8e913c1 (patch)
tree0880c01ee6a9a5e55463adac776362be9ad9b0fd /src/plugins/dearrow/index.tsx
parent3a5b70d410d8c3e2c644732e5849ffcf88499d66 (diff)
downloadVencord-736477671542f0d1554d45faba8b5249d8e913c1.tar.gz
Vencord-736477671542f0d1554d45faba8b5249d8e913c1.tar.bz2
Vencord-736477671542f0d1554d45faba8b5249d8e913c1.zip
Dearrow: Fix button part 2
Diffstat (limited to 'src/plugins/dearrow/index.tsx')
-rw-r--r--src/plugins/dearrow/index.tsx4
1 files changed, 2 insertions, 2 deletions
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>
);
},