mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 21:12:13 +08:00

* remove code outside of the topnav feature flag * delete NavBar folder * remove topnav toggle from backend * restructure AppChrome folder * fix utils mock * fix applinks tests * remove tests since they're covered in e2e * fix 1 of the approotpage tests * Fix another dashboardpage test * remove reverse portalling + test for plugins using deprecated onNavChanged method * kick drone * handle correlations
15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
import React, { memo } from 'react';
|
|
|
|
import { useUrlParams } from 'app/core/navigation/hooks';
|
|
|
|
import { DashboardSearchModal } from './DashboardSearchModal';
|
|
|
|
export const SearchWrapper = memo(() => {
|
|
const [params] = useUrlParams();
|
|
const isOpen = params.get('search') === 'open';
|
|
|
|
return isOpen ? <DashboardSearchModal isOpen={isOpen} /> : null;
|
|
});
|
|
|
|
SearchWrapper.displayName = 'SearchWrapper';
|