${partnerValue ?? '—'}
${buildCompareTag(partnerValue, params.value)}
diff --git a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx
index 348e1b388..567236851 100644
--- a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx
+++ b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx
@@ -1,7 +1,23 @@
import React, { useEffect, useState } from 'react';
import { Icon, Modal } from 'UI';
-import { Tooltip, Input, Button, Dropdown, Menu, Tag, Modal as AntdModal, Form, Avatar } from 'antd';
-import { TeamOutlined, LockOutlined, EditOutlined, DeleteOutlined, MoreOutlined } from '@ant-design/icons';
+import {
+ Tooltip,
+ Input,
+ Button,
+ Dropdown,
+ Menu,
+ Tag,
+ Modal as AntdModal,
+ Form,
+ Avatar,
+} from 'antd';
+import {
+ TeamOutlined,
+ LockOutlined,
+ EditOutlined,
+ DeleteOutlined,
+ MoreOutlined,
+} from '@ant-design/icons';
import { RouteComponentProps } from 'react-router-dom';
import { withSiteId } from 'App/routes';
import { TYPE_ICONS, TYPE_NAMES } from 'App/constants/card';
@@ -9,33 +25,45 @@ import { useStore } from 'App/mstore';
import { observer } from 'mobx-react-lite';
import { toast } from 'react-toastify';
import { useHistory } from 'react-router';
-import { EllipsisVertical } from "lucide-react";
+import { EllipsisVertical } from 'lucide-react';
+import cn from 'classnames'
interface Props extends RouteComponentProps {
metric: any;
siteId: string;
- selected?: boolean;
toggleSelection?: any;
disableSelection?: boolean;
renderColumn: string;
+ inLibrary?: boolean;
}
function MetricTypeIcon({ type }: any) {
return (
{TYPE_NAMES[type]} } size="default" className="bg-tealx-lightest text-tealx mr-2 cursor-default avatar-card-list-item" />
+
+ }
+ size="default"
+ className="bg-tealx-lightest text-tealx mr-2 cursor-default avatar-card-list-item"
+ />
);
}
const MetricListItem: React.FC