From e8e86d302c77b8b0609ccfce33f4415889ddfd5d Mon Sep 17 00:00:00 2001 From: AyushRanjan Date: Wed, 3 Jan 2024 20:21:21 +0530 Subject: [PATCH] TP-48565 | minor fix --- src/Pages/JiraDashboard/Dashboard.module.scss | 4 ++++ src/Pages/JiraDashboard/partials/SearchResultsTable.tsx | 3 ++- src/Pages/JiraDashboard/partials/ticketNameCell.tsx | 2 +- src/Pages/JiraDashboard/types.ts | 4 ++++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/Pages/JiraDashboard/types.ts diff --git a/src/Pages/JiraDashboard/Dashboard.module.scss b/src/Pages/JiraDashboard/Dashboard.module.scss index 8e79de1..b86d37d 100644 --- a/src/Pages/JiraDashboard/Dashboard.module.scss +++ b/src/Pages/JiraDashboard/Dashboard.module.scss @@ -2,6 +2,10 @@ goToLinkColor: #0276fe; } +:export { + alertIconRed: #e92c2c; +} + .table-wrapper { box-sizing: border-box; padding-bottom: 24px; diff --git a/src/Pages/JiraDashboard/partials/SearchResultsTable.tsx b/src/Pages/JiraDashboard/partials/SearchResultsTable.tsx index 5cd9f48..5abe787 100644 --- a/src/Pages/JiraDashboard/partials/SearchResultsTable.tsx +++ b/src/Pages/JiraDashboard/partials/SearchResultsTable.tsx @@ -5,6 +5,7 @@ import { DropDownPosition } from '@navi/web-ui/lib/components/Pagination/constan import { returnFormattedDate } from '@src/services/globalUtils'; import { JiraDashboardData } from '@src/types'; import cx from 'classnames'; +import { FetchJiraDataProps } from '../types'; import HyperlinkCellRenderer from './HyperlinkCellRenderer'; import TeamAssignedCellRenderer from './TeamAssignedCellRenderer'; import TicketNameCell from './ticketNameCell'; @@ -19,7 +20,7 @@ interface SearchResultTableProps { currentPageSize: number; handlePageNumberChange: (pageNumber: number) => void; handlePageSizeChange: (pageSize: number) => void; - fetchJiraData: (props: any) => void; + fetchJiraData: (props: FetchJiraDataProps) => void; } const defaultColDef = { diff --git a/src/Pages/JiraDashboard/partials/ticketNameCell.tsx b/src/Pages/JiraDashboard/partials/ticketNameCell.tsx index 471c161..12e7947 100644 --- a/src/Pages/JiraDashboard/partials/ticketNameCell.tsx +++ b/src/Pages/JiraDashboard/partials/ticketNameCell.tsx @@ -25,7 +25,7 @@ const getTicketIcon = (ticketType: string): JSX.Element | null => { case 'Tech Task': return ; default: - return ; + return ; } }; diff --git a/src/Pages/JiraDashboard/types.ts b/src/Pages/JiraDashboard/types.ts new file mode 100644 index 0000000..a4a954d --- /dev/null +++ b/src/Pages/JiraDashboard/types.ts @@ -0,0 +1,4 @@ +export type FetchJiraDataProps = { + filterQuery?: string; + isDrawer?: boolean; +};