Skip to content

Commit

Permalink
Renderer.tsx updated : eventComponentName updated
Browse files Browse the repository at this point in the history
  • Loading branch information
amars29 committed Nov 10, 2020
1 parent d61c4f4 commit 282b49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/RendererPlugin/components/Renderer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import useForceUpdate from '../../../hooks/useForceUpdate';
import { usePluginStore } from '../../../hooks/usePluginStore';
import ComponentAddedEvent from '../events/ComponentUpdatedEvent';
import ComponentUpdatedEvent from '../events/ComponentUpdatedEvent';

export const Renderer: React.SFC<{
placement: string;
Expand All @@ -10,7 +10,7 @@ export const Renderer: React.SFC<{
const forceUpdate = useForceUpdate();

useEffect(() => {
const eventListener = (event: ComponentAddedEvent) => {
const eventListener = (event: ComponentUpdatedEvent) => {
if (event.position === placement) {
forceUpdate();
}
Expand Down

0 comments on commit 282b49b

Please sign in to comment.