Dearrow: Fix button part 2

This commit is contained in:
V 2023-09-09 19:51:30 +02:00
parent 3a5b70d410
commit 7364776715
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -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>
);
},