diff --git a/frontend/src/components/annotation/AnnotationImage.tsx b/frontend/src/components/annotation/AnnotationImage.tsx
index 3abd525..2508186 100644
--- a/frontend/src/components/annotation/AnnotationImage.tsx
+++ b/frontend/src/components/annotation/AnnotationImage.tsx
@@ -4,27 +4,25 @@ import AnnotationImageDisplay from "./AnnotationImageDisplay";
import AnnotationImageNavigation from "./AnnotationImageNavigation";
import { useMainContext } from "../../contexts/mainContext";
+export default function AnnotationImage() {
+ const { t } = useTranslation();
+ const { image } = useMainContext();
-export default function AnnotationImage () {
- const { t } = useTranslation();
- const { image } = useMainContext();
-
- return (
- <>
- { image() ? (
-
- { capitalize(t("annotations.unknown_image")) } -
- )} - > - ); -}; \ No newline at end of file + return ( + <> + {image() ? ( +{capitalize(t("annotations.unknown_image"))}
+ )} + > + ); +} diff --git a/frontend/src/components/annotation/AnnotationImageDisplay.tsx b/frontend/src/components/annotation/AnnotationImageDisplay.tsx index c22e35f..c817384 100644 --- a/frontend/src/components/annotation/AnnotationImageDisplay.tsx +++ b/frontend/src/components/annotation/AnnotationImageDisplay.tsx @@ -1,76 +1,61 @@ -import { useState, useEffect } from "react"; import { Grid } from "@mui/material"; import { useMainContext } from "../../contexts/mainContext"; import { useAnnotationContext } from "../../contexts/annotationContext"; const AnnotationImageDisplay = () => { + const { image } = useMainContext(); + const { annotated } = useAnnotationContext(); - const [isAnnotatedColor, setIsAnnotatedColor] = useState