fix(ui): fix unused code
This commit is contained in:
parent
d67d4cf3c3
commit
1dab486cf9
2 changed files with 0 additions and 15 deletions
|
|
@ -18,7 +18,6 @@ import SelectDateRange from 'Shared/SelectDateRange';
|
|||
import { Tooltip } from 'react-tippy';
|
||||
import Breadcrumb from 'Shared/Breadcrumb';
|
||||
import AddMetricContainer from '../DashboardWidgetGrid/AddMetricContainer';
|
||||
import AddPredefinedMetric from '../DashboardWidgetGrid/AddPredefinedMetric';
|
||||
import OutsideClickDetectingDiv from 'Shared/OutsideClickDetectingDiv';
|
||||
|
||||
interface IProps {
|
||||
|
|
@ -100,18 +99,6 @@ function DashboardView(props: Props) {
|
|||
}
|
||||
};
|
||||
|
||||
const onAddPredefinedMetrics = () => {
|
||||
dashboardStore.initDashboard(dashboardStore.selectedDashboard);
|
||||
showModal(
|
||||
<AddPredefinedMetric
|
||||
siteId={siteId}
|
||||
title="Ready-Made Metrics"
|
||||
description="Curated metrics predfined by OpenReplay."
|
||||
/>,
|
||||
{ right: true }
|
||||
);
|
||||
};
|
||||
|
||||
if (!dashboard) return null;
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -288,5 +288,3 @@ export default class API {
|
|||
}
|
||||
}
|
||||
}
|
||||
// @ts-ignore
|
||||
window.__OPENREPLAY_API__ = API
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue