Create new components with pretty names

This commit is contained in:
Andrew Kingston 2021-01-19 11:52:33 +00:00
parent 2ea95463ea
commit b607146b6c
1 changed files with 1 additions and 1 deletions

View File

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