fix: debug

This commit is contained in:
Derrick Hammer 2023-10-12 14:48:19 -04:00
parent cccdfdedbb
commit d77c4c2a60
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 18 additions and 14 deletions

View File

@ -29,13 +29,16 @@ const LumeDashboard = (props: any) => {
setUniqueNetworkTypes(uniqueTypes); setUniqueNetworkTypes(uniqueTypes);
}, [networks]); }, [networks]);
const DefaultTrigger = (props: any) => ( const DefaultTrigger = (props: any) => {
console.log(props);
return (
<LumeDashboardTrigger asChild {...props}> <LumeDashboardTrigger asChild {...props}>
<button <button
className={cn( className={cn(
"bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md", "bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md",
{ {
"disabled:pointer-events-none disabled:opacity-50": props.disabled, "disabled:pointer-events-none disabled:opacity-50":
props.disabled,
}, },
)} )}
{...props}> {...props}>
@ -43,6 +46,7 @@ const LumeDashboard = (props: any) => {
</button> </button>
</LumeDashboardTrigger> </LumeDashboardTrigger>
); );
};
const GivenTrigger = React.Children.toArray( const GivenTrigger = React.Children.toArray(
children?.children || (children as any) || [], children?.children || (children as any) || [],
) )