diff --git a/src/components/PhotoSwipe/PhotoSwipe.tsx b/src/components/PhotoSwipe/PhotoSwipe.tsx index fa8df40cc..d54bb8229 100644 --- a/src/components/PhotoSwipe/PhotoSwipe.tsx +++ b/src/components/PhotoSwipe/PhotoSwipe.tsx @@ -46,7 +46,7 @@ import { Formik } from 'formik'; import * as Yup from 'yup'; import EnteSpinner from 'components/EnteSpinner'; import EnteDateTimePicker from 'components/EnteDateTimePicker'; -import { AppContext } from 'pages/_app'; +// import { AppContext } from 'pages/_app'; import { MAX_EDITED_FILE_NAME_LENGTH } from 'constants/file'; import { sleep } from 'utils/common'; @@ -425,7 +425,7 @@ function InfoModal({ exif, scheduleUpdate, }) { - const appContext = useContext(AppContext); + // const appContext = useContext(AppContext); const [updateMLDataIndex, setUpdateMLDataIndex] = useState(0); return ( @@ -471,43 +471,43 @@ function InfoModal({ {constants.SHOW_MAP} )} - {appContext.mlSearchEnabled && ( - <> -
- {constants.PEOPLE} -
- +
+ {constants.PEOPLE} +
+ +
+ {constants.UNIDENTIFIED_FACES} +
+ +
+ {constants.OBJECTS} + -
- {constants.UNIDENTIFIED_FACES} -
- +
+ {constants.TEXT} + -
- {constants.OBJECTS} - -
-
- {constants.TEXT} - -
- - - )} +
+ + + {/* )} */} {exif && ( <>