diff --git a/public/app/features/dashboard/components/PanelEditor/getPanelFrameOptions.tsx b/public/app/features/dashboard/components/PanelEditor/getPanelFrameOptions.tsx
index f03f6884b8e..e18a9ce2fa1 100644
--- a/public/app/features/dashboard/components/PanelEditor/getPanelFrameOptions.tsx
+++ b/public/app/features/dashboard/components/PanelEditor/getPanelFrameOptions.tsx
@@ -214,14 +214,7 @@ export function getPanelFrameCategory2(
value: panel.state.title,
popularRank: 1,
render: function renderTitle() {
- const { title } = panel.useState();
- return (
- panel.setState({ title: e.currentTarget.value })}
- />
- );
+ return ;
},
addon: config.featureToggles.dashgpt && (
panel.setState({ description: e.currentTarget.value })}
- />
- );
+ return ;
},
addon: config.featureToggles.dashgpt && (
);
}
+
+function PanelFrameTitle({ panel }: { panel: VizPanel }) {
+ const { title } = panel.useState();
+
+ return (
+ panel.setState({ title: e.currentTarget.value })} />
+ );
+}
+
+function DescriptionTextArea({ panel }: { panel: VizPanel }) {
+ const { description } = panel.useState();
+
+ return (
+