mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 13:52:11 +00:00
Merge pull request #113 from storytold/fix-build-errors
Fix build errors
This commit is contained in:
1 file changed
+9
-7
@@ -109,14 +109,16 @@ function TtsModelListPage(props: Props) {
|
||||
setMaybeSelectedTtsModel,
|
||||
} = props;
|
||||
|
||||
const images = [
|
||||
"mascot/halloween_1.webp",
|
||||
"mascot/halloween_2.webp",
|
||||
"mascot/halloween_3.webp",
|
||||
"mascot/kitsune_pose2.webp",
|
||||
];
|
||||
const randomImage = useMemo(() => {
|
||||
const images = [
|
||||
"mascot/halloween_1.webp",
|
||||
"mascot/halloween_2.webp",
|
||||
"mascot/halloween_3.webp",
|
||||
"mascot/kitsune_pose2.webp",
|
||||
];
|
||||
|
||||
const randomImage = useMemo(() => images[Math.floor(Math.random() * images.length)], []);
|
||||
return images[Math.floor(Math.random() * images.length)];
|
||||
}, []);
|
||||
|
||||
const [maybeTtsError, setMaybeTtsError] = useState<
|
||||
GenerateTtsAudioErrorType | undefined
|
||||
|
||||
Reference in new issue
Block a user