[Glitch] Update design of Collections list page
Port 3d5cb624ba to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
44394878a4
commit
b08e2b8e60
12 files changed
+300
-119
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { Children } from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export function hasReactChildren(children: ReactNode): boolean {
|
||||
if (!children) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const childrenCount = Children.toArray(children).filter(Boolean).length;
|
||||
|
||||
return childrenCount > 0;
|
||||
}
|
||||
Reference in new issue
Block a user