Create new components with pretty names

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

View File

@ -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,
}