Rename function to improve readability

This commit is contained in:
Fawad Mirzad
2021-02-14 07:50:54 +01:00
parent af1289342d
commit 7ad864043d
13 changed files with 20 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
import mapElementFactory from './mapElementFactory.js'
import buildComponent from './build-component.js'
const props = {
bounds: {
@@ -33,7 +33,7 @@ const events = [
'rightclick',
]
export default mapElementFactory({
export default buildComponent({
mappedProps: props,
name: 'rectangle',
ctr: () => google.maps.Rectangle,