Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Apply suggestions from code review

Andrey Okonetchnikov73ad7dcd12c4
diff --git a/app/designer/features/props-panel/props-panel.stories.tsx b/app/designer/features/props-panel/props-panel.stories.tsx
index 20183f8e36..9792f7615e 100644
--- a/app/designer/features/props-panel/props-panel.stories.tsx
+++ b/app/designer/features/props-panel/props-panel.stories.tsx
@@ -68,7 +68,7 @@ const meta = componentsMeta["Button"];
const argTypes = meta?.argTypes as Record<
string,
{ control: { defaultValue?: unknown } }
->; // TODO: Add type to argTypes
+>; // @todo: Add type to argTypes
export const AllProps: ComponentStoryObj<typeof PropsPanel> = {
args: {
@@ -83,7 +83,7 @@ export const AllProps: ComponentStoryObj<typeof PropsPanel> = {
treeId: "1",
props: Object.entries(argTypes).map(([prop, value]) => {
return {
- id: `${prop}`,
+ id: prop,
prop,
value: value.control.defaultValue,
} as UserProp;
diff --git a/app/designer/features/props-panel/use-props-logic.ts b/app/designer/features/props-panel/use-props-logic.ts
index fefe4c59b7..79ae9e1995 100644
--- a/app/designer/features/props-panel/use-props-logic.ts
+++ b/app/designer/features/props-panel/use-props-logic.ts
@@ -34,7 +34,7 @@ const getRequiredProps = (
}));
};
-// TODO: This returns same props for all instances.
+// @todo: This returns same props for all instances.
// See the failing test in use-props-logic.test.ts
const getPropsWithDefaultValue = (
selectedInstanceData: SelectedInstanceData