Skip to content

Commit

Permalink
fix: make DecoratedComponent as static property (#1177) (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 authored and darthtrevino committed Nov 27, 2018
1 parent 6430c45 commit 95d90b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/react-dnd/src/DragLayer.tsx
Expand Up @@ -36,10 +36,7 @@ export default function DragLayer<Props, CollectedProps = {}>(

class DragLayerContainer extends React.Component<Props> {
public static displayName = `DragLayer(${displayName})`

public get DecoratedComponent() {
return DecoratedComponent
}
public static DecoratedComponent = DecoratedComponent

private manager: DragDropManager<any> | undefined
private isCurrentlyMounted: boolean = false
Expand Down

0 comments on commit 95d90b3

Please sign in to comment.