Dearrow: Fix button part 2
This commit is contained in:
parent
3a5b70d410
commit
7364776715
|
@ -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;
|
const { embed } = component.props;
|
||||||
if (!embed?.dearrow) return null;
|
if (!embed?.dearrow) return null;
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ export default definePlugin({
|
||||||
renderButton(component: Component<Props>) {
|
renderButton(component: Component<Props>) {
|
||||||
return (
|
return (
|
||||||
<ErrorBoundary noop>
|
<ErrorBoundary noop>
|
||||||
{renderButton(component)}
|
<DearrowButton component={component} />
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue