From 9536a1b78ff06f2343b39c734aa0debcf00ae7b9 Mon Sep 17 00:00:00 2001 From: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com> Date: Fri, 10 Jun 2022 16:04:06 +0300 Subject: [PATCH] formatting --- .../archive/ArchiveTable/ArchiveTable.tsx | 27 ++++++++++++++----- .../archive/FeaturesArchiveTable.tsx | 2 +- .../archive/ProjectFeaturesArchiveTable.tsx | 2 +- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx index c74f97d8cf..4d85be411d 100644 --- a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx +++ b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx @@ -9,7 +9,7 @@ import { TableRow, TableSearch, } from 'component/common/Table'; -import {SortingRule, useFlexLayout, useSortBy, useTable} from 'react-table'; +import { SortingRule, useFlexLayout, useSortBy, useTable } from 'react-table'; import { SearchHighlightProvider } from 'component/common/Table/SearchHighlightContext/SearchHighlightContext'; import { useMediaQuery } from '@mui/material'; import { sortTypes } from 'utils/sortTypes'; @@ -40,9 +40,18 @@ export interface IFeaturesArchiveTableProps { refetch: () => void; loading: boolean; storedParams: SortingRule; - setStoredParams: (newValue: (SortingRule | ((prev: SortingRule) => SortingRule))) => SortingRule; + setStoredParams: ( + newValue: + | SortingRule + | ((prev: SortingRule) => SortingRule) + ) => SortingRule; searchParams: URLSearchParams; - setSearchParams: (nextInit: URLSearchParamsInit, navigateOptions?: ({replace?: boolean | undefined, state?: any} | undefined)) => void; + setSearchParams: ( + nextInit: URLSearchParamsInit, + navigateOptions?: + | { replace?: boolean | undefined; state?: any } + | undefined + ) => void; } export const ArchiveTable = ({ @@ -283,7 +292,8 @@ export const ArchiveTable = ({ {rows.map((row, index) => { const isVirtual = - index < firstRenderedIndex || index > lastRenderedIndex; + index < firstRenderedIndex || + index > lastRenderedIndex; if (isVirtual) { return null; @@ -291,12 +301,17 @@ export const ArchiveTable = ({ prepareRow(row); return ( - + {row.cells.map(cell => ( { return (