Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mihow committed Oct 22, 2024
1 parent 33df946 commit 4cb42af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions ui/src/pages/collection-details/capture-columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ export const columns: (projectId: string) => TableColumn<Capture>[] = (
<Link
to={getAppRoute({
to: APP_ROUTES.OCCURRENCES({ projectId }),
filters: { detections__source_image: item.id},
filters: { detections__source_image: item.id },
})}
>
<BasicTableCell value={item.numOccurrences} theme={CellTheme.Bubble} />
<BasicTableCell value={item.numOccurrences} theme={CellTheme.Bubble} />
</Link>
),
},
Expand All @@ -117,8 +117,6 @@ export const columns: (projectId: string) => TableColumn<Capture>[] = (
styles: {
textAlign: TextAlign.Right,
},
renderCell: (item: Capture) => (
<BasicTableCell value={item.numTaxa} />
),
renderCell: (item: Capture) => <BasicTableCell value={item.numTaxa} />,
},
]
10 changes: 4 additions & 6 deletions ui/src/pages/overview/collections/collection-columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const columns: (projectId: string) => TableColumn<Collection>[] = (
textAlign: TextAlign.Right,
},
renderCell: (item: Collection) => (
<BasicTableCell value={item.numImagesWithDetectionsLabel}/>
<BasicTableCell value={item.numImagesWithDetectionsLabel} />
),
},
{
Expand All @@ -64,10 +64,10 @@ export const columns: (projectId: string) => TableColumn<Collection>[] = (
<Link
to={getAppRoute({
to: APP_ROUTES.OCCURRENCES({ projectId }),
filters: { collection: item.id},
filters: { collection: item.id },
})}
>
<BasicTableCell value={item.numOccurrences} theme={CellTheme.Bubble} />
<BasicTableCell value={item.numOccurrences} theme={CellTheme.Bubble} />
</Link>
),
},
Expand All @@ -78,9 +78,7 @@ export const columns: (projectId: string) => TableColumn<Collection>[] = (
styles: {
textAlign: TextAlign.Right,
},
renderCell: (item: Collection) => (
<BasicTableCell value={item.numTaxa} />
),
renderCell: (item: Collection) => <BasicTableCell value={item.numTaxa} />,
},
{
id: 'updated-at',
Expand Down

0 comments on commit 4cb42af

Please sign in to comment.