Skip to content

Commit dc3901f

Browse files
chore(VE-6918/error-text): component name changed to title case
1 parent 8122192 commit dc3901f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/visualBuilder/components/emptyBlock.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { observeParentAndFocusNewInstance } from "../utils/multipleElementAddBut
66
import { ISchemaFieldMap } from "../utils/types/index.types";
77
import { VisualBuilderPostMessageEvents } from "../utils/types/postMessage.types";
88
import React from "preact/compat";
9+
import { startCase, toLower } from "lodash-es";
910

1011
interface EmptyBlockProps {
1112
details: {
@@ -55,7 +56,7 @@ export function EmptyBlock(props: EmptyBlockProps): JSX.Element {
5556
]
5657
)}
5758
>
58-
{blockParentName.toLowerCase()}
59+
{startCase(toLower(blockParentName))}
5960
</span>{" "}
6061
added. Click the button below to add one.
6162
</div>

0 commit comments

Comments
 (0)