diff --git a/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/BookmarksTab.tsx b/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/BookmarksTab.tsx index 7f9c885632..2996bb88da 100644 --- a/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/BookmarksTab.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/BookmarksTab.tsx @@ -57,12 +57,12 @@ export default function BookmarksTab({ username }: { username: string }) { list, listSet, onInputChange: () => setShowMasonryGrid(false), - onSuccess: (res) => { + onSuccess: res => { bookmarks.gather({ res, key: "weight_token" }); setShowMasonryGrid(true); }, requestList: true, - urlParam: username, + urlParam: username.toLowerCase(), }); const handlePageClick = (selectedItem: { selected: number }) => { @@ -209,7 +209,14 @@ export default function BookmarksTab({ username }: { username: string }) { onLayoutComplete={() => console.log("Layout complete!")} > {dataList.map((data: any, key: number) => { - let weightProps = { bookmarks, data, ratings, showCreator: true, source, type: "weights" }; + let weightProps = { + bookmarks, + data, + ratings, + showCreator: true, + source, + type: "weights", + }; // let mediaProps = { // bookmarks, diff --git a/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/MediaTab.tsx b/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/MediaTab.tsx index 0bc7e3bcaf..5bfad65042 100644 --- a/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/MediaTab.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/MediaTab.tsx @@ -38,13 +38,13 @@ export default function MediaTab({ username }: { username: string }) { list, listSet, onInputChange: () => setShowMasonryGrid(false), - onSuccess: (res) => { + onSuccess: res => { // bookmarks.gather({ res, key: "token" }); ratings.gather({ res, key: "token" }); setShowMasonryGrid(true); }, requestList: true, - urlParam: username, + urlParam: username.toLowerCase(), }); const handlePageClick = (selectedItem: { selected: number }) => { diff --git a/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/WeightsTab.tsx b/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/WeightsTab.tsx index 42a787dfc4..6939178ce4 100644 --- a/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/WeightsTab.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/profile/profile_view/tabs/WeightsTab.tsx @@ -27,8 +27,12 @@ export default function WeightsTab({ username }: { username: string }) { // const { maybe_scoped_weight_type, ...yadda } = useParams<{ maybe_scoped_weight_type: string }>(); const urlQueries = new URLSearchParams(search); const gridContainerRef = useRef(null); - const [weightType, weightTypeSet] = useState(urlQueries.get("maybe_scoped_weight_type") || "all"); - const [weightCategory, weightCategorySet] = useState(urlQueries.get("maybe_scoped_weight_category") || "all"); + const [weightType, weightTypeSet] = useState( + urlQueries.get("maybe_scoped_weight_type") || "all" + ); + const [weightCategory, weightCategorySet] = useState( + urlQueries.get("maybe_scoped_weight_category") || "all" + ); const [sd, sdSet] = useState("all"); const [tts, ttsSet] = useState("all"); const [vc, vcSet] = useState("all"); @@ -48,13 +52,13 @@ export default function WeightsTab({ username }: { username: string }) { list, listSet, onInputChange: () => setShowMasonryGrid(false), - onSuccess: (res) => { - bookmarks.gather({ res, key: "weight_token" }); // expand rather than replace for lazy loading + onSuccess: res => { + bookmarks.gather({ res, key: "weight_token" }); // expand rather than replace for lazy loading ratings.gather({ res, key: "weight_token" }); setShowMasonryGrid(true); }, requestList: true, - urlParam: username, + urlParam: username.toLowerCase(), }); const handlePageClick = (selectedItem: { selected: number }) => { @@ -68,7 +72,8 @@ export default function WeightsTab({ username }: { username: string }) { // { value: "sd", label: "Image Generation" }, // ]; - const weightTypeOpts = [ // these probably need beter labels + const weightTypeOpts = [ + // these probably need beter labels { value: "all", label: "All weight types" }, { value: "hifigan_tt2", label: "hifigan_tt2" }, { value: "sd_1.5", label: "sd_1.5" }, @@ -131,20 +136,24 @@ export default function WeightsTab({ username }: { username: string }) { value: weights.sort, }} /> - - + + {weightType === "tts" && ( console.log("Layout complete!")} > {weights.list.map((data: any, key: number) => { - let props = { bookmarks, data, ratings, showCreator: true, type: "weights", source }; + let props = { + bookmarks, + data, + ratings, + showCreator: true, + type: "weights", + source, + }; return (