Skip to content

Commit

Permalink
feat(HeatmapLayer): add HeatmapLayer component (#248)
Browse files Browse the repository at this point in the history
* Original author: @zolrath
* Ref commits: b8d8623, 21dbb77, 8b16ea4, 08abfb5
* Remove decorator usage in HeatmapLayerCreator
  • Loading branch information
tomchentw committed Sep 30, 2016
1 parent a1a7b73 commit 2863cdd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/creators/HeatmapLayerCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ const { eventPropTypes, registerEvents } = eventHandlerCreator(HeatmapLayerEvent

export const heatmapLayerEventPropTypes = eventPropTypes;

@componentLifecycleDecorator({
registerEvents,
instanceMethodName: `getHeatmapLayer`,
updaters: heatmapLayerUpdaters,
})
export default class HeatmapLayerCreator extends Component {
class HeatmapLayerCreator extends Component {

static propTypes = {
mapHolderRef: PropTypes.instanceOf(GoogleMapHolder).isRequired,
Expand All @@ -65,3 +60,11 @@ export default class HeatmapLayerCreator extends Component {
return (<noscript />);
}
}


export default componentLifecycleDecorator({
registerEvents,
instanceMethodName: `getHeatmapLayer`,
updaters: heatmapLayerUpdaters,
})(HeatmapLayerCreator);

0 comments on commit 2863cdd

Please sign in to comment.