Skip to content

Commit

Permalink
Fix: rename from DashboardSelectBar to DashboardContorlBar #11
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Jun 9, 2024
1 parent 0c933dd commit a79f67c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface Props {
ariaLabel: string;
}

const DashboardSelectBar = ({ showSubMenu, dashboard, ariaLabel }: Props) => {
const DashboardControlBar = ({ showSubMenu, dashboard, ariaLabel }: Props) => {
const styles = useStyles2(getStyles);
const { chrome } = useGrafana();
const state = chrome.useState();
Expand Down Expand Up @@ -90,4 +90,4 @@ const getStyles = (theme: GrafanaTheme2) => {
};
};

export default DashboardSelectBar;
export default DashboardControlBar;
4 changes: 2 additions & 2 deletions public/app/features/dashboard/containers/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { getTimeSrv } from '../services/TimeSrv';
import { cleanUpDashboardAndVariables } from '../state/actions';
import { initDashboard } from '../state/initDashboard';

import DashboardControls from './DashboardControls';
import DashboardControlBar from './DashboardControlBar';
import { DashboardPageRouteParams, DashboardPageRouteSearchParams } from './types';

export const mapStateToProps = (state: StoreState) => ({
Expand Down Expand Up @@ -353,7 +353,7 @@ export class UnthemedDashboardPage extends PureComponent<Props, State> {
</header>
)}
{!isHome && (
<DashboardControls
<DashboardControlBar
showSubMenu={showSubMenu}
dashboard={dashboard}
ariaLabel={selectors.pages.Dashboard.SubMenu.submenu}
Expand Down

0 comments on commit a79f67c

Please sign in to comment.