From 2b91cbd0d2b0b5564b02466761c7bf2b4dca341c Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 6 Nov 2024 18:53:12 +0530 Subject: [PATCH] Move --- web/packages/new/photos/components/SearchBar.tsx | 5 ++++- web/packages/new/photos/components/gallery/index.tsx | 2 +- web/packages/new/photos/components/sidebar/MLSettings.tsx | 2 +- .../new/photos/components/utils/{ml.ts => use-snapshot.ts} | 0 4 files changed, 6 insertions(+), 3 deletions(-) rename web/packages/new/photos/components/utils/{ml.ts => use-snapshot.ts} (100%) diff --git a/web/packages/new/photos/components/SearchBar.tsx b/web/packages/new/photos/components/SearchBar.tsx index fff075b82a..b11efecbd9 100644 --- a/web/packages/new/photos/components/SearchBar.tsx +++ b/web/packages/new/photos/components/SearchBar.tsx @@ -36,7 +36,10 @@ import AsyncSelect from "react-select/async"; import { SearchPeopleList } from "./PeopleList"; import { UnstyledButton } from "./UnstyledButton"; import type { ButtonishProps } from "./mui"; -import { useMLStatusSnapshot, usePeopleStateSnapshot } from "./utils/ml"; +import { + useMLStatusSnapshot, + usePeopleStateSnapshot, +} from "./utils/use-snapshot"; export interface SearchBarProps { /** diff --git a/web/packages/new/photos/components/gallery/index.tsx b/web/packages/new/photos/components/gallery/index.tsx index 9b35c445ba..2d828fd62f 100644 --- a/web/packages/new/photos/components/gallery/index.tsx +++ b/web/packages/new/photos/components/gallery/index.tsx @@ -12,7 +12,7 @@ import { VerticallyCentered } from "@ente/shared/components/Container"; import { Typography } from "@mui/material"; import { t } from "i18next"; import React from "react"; -import { useMLStatusSnapshot } from "../utils/ml"; +import { useMLStatusSnapshot } from "../utils/use-snapshot"; import { GalleryItemsHeaderAdapter, GalleryItemsSummary } from "./ListHeader"; /** diff --git a/web/packages/new/photos/components/sidebar/MLSettings.tsx b/web/packages/new/photos/components/sidebar/MLSettings.tsx index 441c14dd61..d67b1e028f 100644 --- a/web/packages/new/photos/components/sidebar/MLSettings.tsx +++ b/web/packages/new/photos/components/sidebar/MLSettings.tsx @@ -24,7 +24,7 @@ import React, { useEffect, useState } from "react"; import { Trans } from "react-i18next"; import { useAppContext } from "../../types/context"; import { openURL } from "../../utils/web"; -import { useMLStatusSnapshot } from "../utils/ml"; +import { useMLStatusSnapshot } from "../utils/use-snapshot"; import { useWrapAsyncOperation } from "../utils/use-wrap-async"; export const MLSettings: React.FC = ({ diff --git a/web/packages/new/photos/components/utils/ml.ts b/web/packages/new/photos/components/utils/use-snapshot.ts similarity index 100% rename from web/packages/new/photos/components/utils/ml.ts rename to web/packages/new/photos/components/utils/use-snapshot.ts