mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-25 13:50:51 +02:00
refactor: show loading state only on initial load
This commit is contained in:
@@ -17,7 +17,7 @@ export function GroupBadges({
|
|||||||
groups,
|
groups,
|
||||||
isLoading,
|
isLoading,
|
||||||
}: GroupBadgesProps) {
|
}: GroupBadgesProps) {
|
||||||
if (isLoading) {
|
if (isLoading && !groups.length) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-wrap gap-2 mb-4">
|
<div className="flex flex-wrap gap-2 mb-4">
|
||||||
<div className="flex items-center gap-2 px-4.5 py-1.5 text-xs">
|
<div className="flex items-center gap-2 px-4.5 py-1.5 text-xs">
|
||||||
|
|||||||
Reference in New Issue
Block a user