Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: Add display name to components so it doesn't show as anonymous (#5616)

Aakansha Doshi43b13d8e3ab4
diff --git a/src/actions/actionExport.tsx b/src/actions/actionExport.tsx
index 015e521628..a566e5bf91 100644
--- a/src/actions/actionExport.tsx
+++ b/src/actions/actionExport.tsx
@@ -244,7 +244,7 @@ export const actionLoadScene = register({
}
},
keyTest: (event) => event[KEYS.CTRL_OR_CMD] && event.key === KEYS.O,
- PanelComponent: ({ updateData, appState }) => (
+ PanelComponent: ({ updateData }) => (
<ToolButton
type="button"
icon={load}
diff --git a/src/actions/manager.tsx b/src/actions/manager.tsx
index 246bfe7a6c..3e3533732e 100644
--- a/src/actions/manager.tsx
+++ b/src/actions/manager.tsx
@@ -147,6 +147,7 @@ export class ActionManager {
) {
const action = this.actions[name];
const PanelComponent = action.PanelComponent!;
+ PanelComponent.displayName = "PanelComponent";
const elements = this.getElementsIncludingDeleted();
const appState = this.getAppState();
const updateData = (formState?: any) => {
diff --git a/src/components/ColorPicker.tsx b/src/components/ColorPicker.tsx
index 76a66b5bf4..22f9eb267c 100644
--- a/src/components/ColorPicker.tsx
+++ b/src/components/ColorPicker.tsx
@@ -343,6 +343,8 @@ const ColorInput = React.forwardRef(
},
);
+ColorInput.displayName = "ColorInput";
+
export const ColorPicker = ({
type,
color,
diff --git a/src/components/ToolButton.tsx b/src/components/ToolButton.tsx
index 328c135c65..7077898f30 100644
--- a/src/components/ToolButton.tsx
+++ b/src/components/ToolButton.tsx
@@ -187,3 +187,5 @@ ToolButton.defaultProps = {
className: "",
size: "medium",
};
+
+ToolButton.displayName = "ToolButton";