Prettier formatting.

This commit is contained in:
Ryan Dick 2024-07-03 15:57:02 -04:00
parent 534528b85a
commit 9d3739244f

View File

@ -72,7 +72,8 @@ const ModelList = () => {
[vaeModels, searchTerm, filteredModelType] [vaeModels, searchTerm, filteredModelType]
); );
const [spandrelImageToImageModels, { isLoading: isLoadingSpandrelImageToImageModels }] = useSpandrelImageToImageModels(); const [spandrelImageToImageModels, { isLoading: isLoadingSpandrelImageToImageModels }] =
useSpandrelImageToImageModels();
const filteredSpandrelImageToImageModels = useMemo( const filteredSpandrelImageToImageModels = useMemo(
() => modelsFilter(spandrelImageToImageModels, searchTerm, filteredModelType), () => modelsFilter(spandrelImageToImageModels, searchTerm, filteredModelType),
[spandrelImageToImageModels, searchTerm, filteredModelType] [spandrelImageToImageModels, searchTerm, filteredModelType]
@ -153,9 +154,15 @@ const ModelList = () => {
<ModelListWrapper title={t('common.t2iAdapter')} modelList={filteredT2IAdapterModels} key="t2i-adapters" /> <ModelListWrapper title={t('common.t2iAdapter')} modelList={filteredT2IAdapterModels} key="t2i-adapters" />
)} )}
{/* Spandrel Image to Image List */} {/* Spandrel Image to Image List */}
{isLoadingSpandrelImageToImageModels && <FetchingModelsLoader loadingMessage="Loading Spandrel Image to Image Models..." />} {isLoadingSpandrelImageToImageModels && (
<FetchingModelsLoader loadingMessage="Loading Spandrel Image to Image Models..." />
)}
{!isLoadingSpandrelImageToImageModels && filteredSpandrelImageToImageModels.length > 0 && ( {!isLoadingSpandrelImageToImageModels && filteredSpandrelImageToImageModels.length > 0 && (
<ModelListWrapper title="Spandrel Image to Image" modelList={filteredSpandrelImageToImageModels} key="spandrel-image-to-image" /> <ModelListWrapper
title="Spandrel Image to Image"
modelList={filteredSpandrelImageToImageModels}
key="spandrel-image-to-image"
/>
)} )}
{totalFilteredModels === 0 && ( {totalFilteredModels === 0 && (
<Flex w="full" h="full" alignItems="center" justifyContent="center"> <Flex w="full" h="full" alignItems="center" justifyContent="center">