diff --git a/TODO b/TODO
index 4a9e6284..72218033 100644
--- a/TODO
+++ b/TODO
@@ -5,10 +5,10 @@
- medium: fix public user list and public photos for authenticated user
- medium: highlight sidebar menu when children menu page is active
- medium: remove the use of useMediaquery
-- medium: photolist action menu styling, move actions to the right
- low: fix photo list dropdown filter click area
- low: rework mobile top menu for usability (upload, search, etc.)
- low: fix warnings (in console) related to defaultProps (photo list view, etc.)
+- medium: fix lightbox editor caption
- optional: refactor site search with combobox
- optional: migrate from Emotion to css modules (performance improvement)
diff --git a/src/components/facedashboard/FaceComponent.tsx b/src/components/facedashboard/FaceComponent.tsx
index 563dd0ba..7393c7fe 100644
--- a/src/components/facedashboard/FaceComponent.tsx
+++ b/src/components/facedashboard/FaceComponent.tsx
@@ -24,6 +24,13 @@ const useStyle = createStyles(theme => ({
},
}));
+export const calculateProbabiltyColor = (labelProbability: number) => {
+ if (labelProbability > 0.9) return "green";
+ if (labelProbability > 0.8) return "yellow";
+ if (labelProbability > 0.7) return "orange";
+ return "red";
+};
+
export function FaceComponent({
cell,
isScrollingFast,
@@ -33,14 +40,7 @@ export function FaceComponent({
handleClick,
handleShowClick,
}: Props) {
-
const { classes } = useStyle();
- const calculateProbabiltyColor = (labelProbability: number) => {
- if (labelProbability > 0.9) return "green";
- if (labelProbability > 0.8) return "yellow";
- if (labelProbability > 0.7) return "orange";
- return "red";
- };
const labelProbabilityColor = calculateProbabiltyColor(cell.person_label_probability);
const [tooltipOpened, setTooltipOpened] = useState(false);
diff --git a/src/components/facedashboard/HeaderComponent.tsx b/src/components/facedashboard/HeaderComponent.tsx
index 704e3be2..4dd47cd8 100644
--- a/src/components/facedashboard/HeaderComponent.tsx
+++ b/src/components/facedashboard/HeaderComponent.tsx
@@ -109,7 +109,7 @@ export function HeaderComponent({
{!(cell.kind === "CLUSTER" || cell.kind === "UNKNOWN") && (