Render both ListFooter and CreateAnother when isMe

Always render ListFooter for pagination behavior (loading indicator,
error state). When viewing own profile, also render CreateAnother
button after the ListFooter.
This commit is contained in:
Claude
2026-01-21 19:10:12 +00:00
committed by Samuel Newman
parent 6f41baa0af
commit c7d51d6390
@@ -164,17 +164,17 @@ export function ProfileStarterPacks({
if (!data || items?.length === 0) { if (!data || items?.length === 0) {
return null return null
} }
if (isMe) {
return <CreateAnother style={{paddingBottom: bottomBarOffset}} />
}
return ( return (
<ListFooter <>
isFetchingNextPage={isFetchingNextPage} <ListFooter
hasNextPage={hasNextPage} isFetchingNextPage={isFetchingNextPage}
error={isError ? 'Could not load more starter packs' : undefined} hasNextPage={hasNextPage}
onRetry={fetchNextPage} error={isError ? 'Could not load more starter packs' : undefined}
style={{paddingBottom: bottomBarOffset}} onRetry={fetchNextPage}
/> style={!isMe ? {paddingBottom: bottomBarOffset} : undefined}
/>
{isMe && <CreateAnother style={{paddingBottom: bottomBarOffset}} />}
</>
) )
}, [ }, [
data, data,