{search !== undefined ? (
-
+
+
+ {search && (
+
+ )}
+
) : (
title &&
{title}
)}
diff --git a/src/website/packages/fakeyou.com/src/components/providers/ModalProvider/ModalLayer.tsx b/src/website/packages/fakeyou.com/src/components/providers/ModalProvider/ModalLayer.tsx
index 94616d8758..2a013728cf 100644
--- a/src/website/packages/fakeyou.com/src/components/providers/ModalProvider/ModalLayer.tsx
+++ b/src/website/packages/fakeyou.com/src/components/providers/ModalProvider/ModalLayer.tsx
@@ -39,7 +39,7 @@ export default function ModalLayer({
{...{
className: mainClassName,
style: tintStyle,
- onClick: ({ target }) => {
+ onMouseDown: ({ target }) => {
if (
!lockTint &&
target instanceof HTMLElement &&
diff --git a/src/website/packages/fakeyou.com/src/v2/view/pages/dev_tts/ExploreTts.tsx b/src/website/packages/fakeyou.com/src/v2/view/pages/dev_tts/ExploreTts.tsx
index c80081f2b6..1c6f88628b 100644
--- a/src/website/packages/fakeyou.com/src/v2/view/pages/dev_tts/ExploreTts.tsx
+++ b/src/website/packages/fakeyou.com/src/v2/view/pages/dev_tts/ExploreTts.tsx
@@ -1,7 +1,7 @@
-import { ListWeights, Weight } from "@storyteller/components/src/api";
-import { useLazyLists } from "hooks";
+import { ListFeaturedWeights, Weight } from "@storyteller/components/src/api";
+import { useListContent } from "hooks";
import React, { useRef, useState } from "react";
-import prepFilter from "resources/prepFilter";
+// import prepFilter from "resources/prepFilter";
import { MasonryGrid, WeightsCards } from "components/common";
interface ExploreTtsProps {
@@ -13,20 +13,21 @@ const ExploreTts = ({ onResultSelect }: ExploreTtsProps) => {
const [showMasonryGrid, setShowMasonryGrid] = useState(false);
const gridContainerRef = useRef
(null);
- const weights = useLazyLists({
+ const weights = useListContent({
urlUpdate: false,
addQueries: {
page_size: "48",
- ...prepFilter("text_to_speech", "weight_category"),
+ // ...prepFilter("text_to_speech", "weight_category"),
},
- fetcher: ListWeights,
+ fetcher: ListFeaturedWeights,
list,
listSet,
onInputChange: () => setShowMasonryGrid(false),
- onSuccess: res => {
+ onSuccess: () => {
setShowMasonryGrid(true);
},
requestList: true,
+ urlParam: "",
});
return (
@@ -38,39 +39,47 @@ const ExploreTts = ({ onResultSelect }: ExploreTtsProps) => {
No weight created yet.
) : (
- <>
-