From 540464161408e19726f58216803a25bd1654dbb4 Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Wed, 11 Oct 2023 14:29:40 -0400 Subject: [PATCH] [POR-1859] change log filter component to new version (#3793) --- dashboard/src/components/porter/Filter.tsx | 16 ++++---- .../events/cards/PreDeployEventCard.tsx | 2 + .../expanded-app/logs/LogSection.tsx | 2 +- .../validate-apply/logs/Logs.tsx | 39 +++++++++++++------ 4 files changed, 39 insertions(+), 20 deletions(-) diff --git a/dashboard/src/components/porter/Filter.tsx b/dashboard/src/components/porter/Filter.tsx index 1b2bc776ac..fd250c293d 100644 --- a/dashboard/src/components/porter/Filter.tsx +++ b/dashboard/src/components/porter/Filter.tsx @@ -1,20 +1,21 @@ -import React, { useEffect, useState } from "react"; +import React, { useState } from "react"; import styled from "styled-components"; import Select from "./Select"; import Spacer from "./Spacer"; import filter from "assets/filter.svg"; +import { GenericLogFilter, LogFilterName } from "main/home/app-dashboard/expanded-app/logs/types"; type Props = { - filters: any; - selectedFilterValues: Record; + filters: GenericLogFilter[]; filterString: string; + selectedFilterValues: Record; }; const Filter: React.FC = ({ filters, - selectedFilterValues, filterString, + selectedFilterValues, }) => { const [isExpanded, setIsExpanded] = useState(false); @@ -33,16 +34,17 @@ const Filter: React.FC = ({ setIsExpanded(false)} isExpanded={isExpanded} /> - {filters.map((filter: any, i: number) => { + {filters.map((filter: GenericLogFilter, i: number) => { return ( {filter.displayName} - +