فهرست منبع

chore: Rename renderPanel to renderPanelBody

Johannes Schill 6 سال پیش
والد
کامیت
c3965e332d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      public/app/features/dashboard/dashgrid/PanelChrome.tsx

+ 2 - 2
public/app/features/dashboard/dashgrid/PanelChrome.tsx

@@ -140,7 +140,7 @@ export class PanelChrome extends PureComponent<Props, State> {
     );
   }
 
-  renderPanel = (width: number, height: number): JSX.Element => {
+  renderPanelBody = (width: number, height: number): JSX.Element => {
     const { panel } = this.props;
     const { refreshCounter, timeRange } = this.state;
     const { datasource, targets } = panel;
@@ -191,7 +191,7 @@ export class PanelChrome extends PureComponent<Props, State> {
                 scopedVars={panel.scopedVars}
                 links={panel.links}
               />
-              {this.renderPanel(width, height)}
+              {this.renderPanelBody(width, height)}
             </div>
           );
         }}