Dearrow: Fix button part 2
This commit is contained in:
parent
3a5b70d410
commit
7364776715
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue