From ae8051fe098cf68a31dea5a4fc0f3cf00853f6f6 Mon Sep 17 00:00:00 2001 From: olehp Date: Tue, 27 Feb 2024 15:22:44 +0200 Subject: [PATCH 1/5] reuse new button --- .../common/v3/InsightCard/index.tsx | 25 ++++++++----------- .../common/v3/InsightCard/styles.ts | 9 ------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/src/components/common/v3/InsightCard/index.tsx b/src/components/common/v3/InsightCard/index.tsx index c232a6621..7f458b8b5 100644 --- a/src/components/common/v3/InsightCard/index.tsx +++ b/src/components/common/v3/InsightCard/index.tsx @@ -1,8 +1,8 @@ import { useState } from "react"; import { isString } from "../../../../typeGuards/isString"; import { formatTimeDistance } from "../../../../utils/formatTimeDistance"; +import { IconButton } from "../../../Insights/common/InsightCard/IconButton"; import { Link } from "../../Link"; -import { NewButton } from "../../NewButton"; import { TraceIcon } from "../../icons/12px/TraceIcon"; import { HistogramIcon } from "../../icons/16px/HistogramIcon"; import { JiraLogoIcon } from "../../icons/16px/JiraLogoIcon"; @@ -10,6 +10,7 @@ import { LiveIcon } from "../../icons/16px/LiveIcon"; import { PinIcon } from "../../icons/16px/PinIcon"; import { RecalculateIcon } from "../../icons/16px/RecalculateIcon"; import { CrossIcon } from "../../icons/CrossIcon"; +import { Button } from "../Button"; import { Card } from "../Card"; import { InsightHeader } from "../InsightHeader"; import { Tooltip } from "../Tooltip"; @@ -106,37 +107,31 @@ export const InsightCard = (props: InsightCardProps) => { } footer={ - +