1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

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

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