Browse Source

Create new components with pretty names

master
Andrew Kingston 6 years ago
parent
commit
4944fb3e8c
  1. 2
      packages/builder/src/builderStore/store/frontend.js

2
packages/builder/src/builderStore/store/frontend.js

@ -282,7 +282,7 @@ export const getFrontendStore = () => {
_id: uuid(),
_component: definition.component,
_styles: { normal: {}, hover: {}, active: {} },
_instanceName: `New ${definition.component.split("/")[2]}`,
_instanceName: `New ${definition.name}`,
...cloneDeep(props),
...extras,
}

Loading…
Cancel
Save