This commit is contained in:
Manav Rathi
2024-11-06 18:53:12 +05:30
parent 7cd54f4815
commit 2b91cbd0d2
4 changed files with 6 additions and 3 deletions

View File

@@ -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 {
/**

View File

@@ -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";
/**

View File

@@ -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<NestedSidebarDrawerVisibilityProps> = ({