@@ -23,18 +23,20 @@ import { Index } from "../utils/models";
2323dayjs . extend ( utc ) ;
2424
2525const ItemContainer = styled . div `
26- padding: 10px;
27- display: flex;
28- flex-direction: column;
26+ padding: 10px;
27+ display: flex;
28+ flex-direction: column;
2929` ;
3030const Row = styled . div `
31- padding: 5px;
32- display: flex;
33- flex-direction: row;
34- &:nth-of-type(odd){ background: rgba(0,0,0,0.05) }
31+ padding: 5px;
32+ display: flex;
33+ flex-direction: row;
34+ &:nth-of-type(odd) {
35+ background: rgba(0, 0, 0, 0.05);
36+ }
3537` ;
3638const RowKey = styled . div `
37- width: 350px;
39+ width: 350px;
3840` ;
3941const IndexRow : FC < { title : string ; children : ReactNode } > = ( {
4042 title,
@@ -49,13 +51,13 @@ const IndexRow: FC<{ title: string; children: ReactNode }> = ({
4951export function IndexSummary ( { index } : { index : Index } ) {
5052 const all_splits = index . splits ;
5153 const published_splits = all_splits . filter (
52- ( split ) => split . split_state == "Published" ,
54+ ( split ) => split . split_state === "Published" ,
5355 ) ;
5456 const num_of_staged_splits = all_splits . filter (
55- ( split ) => split . split_state == "Staged" ,
57+ ( split ) => split . split_state === "Staged" ,
5658 ) . length ;
5759 const num_of_marked_for_delete_splits = all_splits . filter (
58- ( split ) => split . split_state == "MarkedForDeletion" ,
60+ ( split ) => split . split_state === "MarkedForDeletion" ,
5961 ) . length ;
6062 const total_num_docs = published_splits
6163 . map ( ( split ) => split . num_docs )
0 commit comments