mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
fix build errors
This commit is contained in:
1 parent
b8171626df
commit
cbeea677e0
4 files changed
+6
-8
No files matched your search
@@ -13,15 +13,13 @@ import {
|
||||
faImage,
|
||||
faTags,
|
||||
faHandsHelping,
|
||||
faChartArea,
|
||||
faMicrophoneAlt,
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, item, panel } from "../../../../data/animation";
|
||||
import { usePrefixedDocumentTitle } from "../../../../common/UsePrefixedDocumentTitle";
|
||||
import { PageHeader } from "../../_common/PageHeader";
|
||||
import { faHandHoldingHeart } from "@fortawesome/pro-solid-svg-icons";
|
||||
import { faMicrophone, faMicrophoneStand } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { faMicrophoneStand } from "@fortawesome/pro-duotone-svg-icons";
|
||||
import { faWaveformLines } from "@fortawesome/pro-regular-svg-icons";
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -80,12 +80,12 @@ function VcModelListPage(props: Props) {
|
||||
ttsModelsLoaded,
|
||||
]);
|
||||
|
||||
const handleLoading = () => {
|
||||
const handleLoading = useCallback(() => {
|
||||
setLoading(true);
|
||||
setTimeout(() => {
|
||||
setLoading(false);
|
||||
}, 2000);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
listModels();
|
||||
@@ -94,7 +94,8 @@ function VcModelListPage(props: Props) {
|
||||
}, 2000);
|
||||
return () => clearTimeout(timeout);
|
||||
}, [
|
||||
handleLoading
|
||||
handleLoading,
|
||||
listModels,
|
||||
]);
|
||||
|
||||
const handleClearClick = (ev: React.FormEvent<HTMLButtonElement>) => {
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ function VcModelListSearch(props: Props) {
|
||||
// TODO: Cache a lookup table
|
||||
//const maybeNewVoiceConversionModel = props.allVoiceConversionModelsByTokenMap.get(token);
|
||||
const maybeNewVoiceConversionModel = props.voiceConversionModels.find((voiceConversionModel) => {
|
||||
return voiceConversionModel.token == voiceConversionModelToken;
|
||||
return voiceConversionModel.token === voiceConversionModelToken;
|
||||
});
|
||||
if (maybeNewVoiceConversionModel !== undefined) {
|
||||
props.setMaybeSelectedVoiceConversionModel(maybeNewVoiceConversionModel);
|
||||
|
||||
@@ -2,7 +2,6 @@ import React, { useMemo } from "react";
|
||||
import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper";
|
||||
import { SessionSubscriptionsWrapper } from "@storyteller/components/src/session/SessionSubscriptionsWrapper";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Trans } from "react-i18next";
|
||||
import { t } from "i18next";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user