mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-17 19:06:55 +02:00
fix: Adjust Load More button placement in ProfileFeed and ProfileTextFeed components (#119)
Co-authored-by: highperfocused <highperfocused@pm.me>
This commit is contained in:
@@ -54,11 +54,6 @@ const ProfileFeed: React.FC<ProfileFeedProps> = ({ pubkey }) => {
|
||||
/>
|
||||
) : null;
|
||||
})}
|
||||
{!isLoading && (
|
||||
<div className="flex justify-center p-4">
|
||||
<Button className="w-full md:w-auto" onClick={loadMore}>Load More</Button>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<div className="flex flex-col items-center justify-center py-10 text-gray-500">
|
||||
@@ -66,6 +61,11 @@ const ProfileFeed: React.FC<ProfileFeedProps> = ({ pubkey }) => {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{!isLoading && (
|
||||
<div className="flex justify-center p-4">
|
||||
<Button className="w-full" onClick={loadMore}>Load More</Button>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -55,14 +55,14 @@ const ProfileTextFeed: React.FC<ProfileTextFeedProps> = ({ pubkey }) => {
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
{!isLoading && filteredEvents.length > 0 && (
|
||||
<div className="flex justify-center p-4">
|
||||
<Button className="w-full md:w-auto" onClick={loadMore}>Load More</Button>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
{!isLoading && filteredEvents.length > 0 && (
|
||||
<div className="flex justify-center p-4">
|
||||
<Button className="w-full" onClick={loadMore}>Load More</Button>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user