fix: debug
This commit is contained in:
parent
cccdfdedbb
commit
d77c4c2a60
|
@ -29,20 +29,24 @@ const LumeDashboard = (props: any) => {
|
||||||
setUniqueNetworkTypes(uniqueTypes);
|
setUniqueNetworkTypes(uniqueTypes);
|
||||||
}, [networks]);
|
}, [networks]);
|
||||||
|
|
||||||
const DefaultTrigger = (props: any) => (
|
const DefaultTrigger = (props: any) => {
|
||||||
<LumeDashboardTrigger asChild {...props}>
|
console.log(props);
|
||||||
<button
|
return (
|
||||||
className={cn(
|
<LumeDashboardTrigger asChild {...props}>
|
||||||
"bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md",
|
<button
|
||||||
{
|
className={cn(
|
||||||
"disabled:pointer-events-none disabled:opacity-50": props.disabled,
|
"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}>
|
props.disabled,
|
||||||
Open Dashboard
|
},
|
||||||
</button>
|
)}
|
||||||
</LumeDashboardTrigger>
|
{...props}>
|
||||||
);
|
Open Dashboard
|
||||||
|
</button>
|
||||||
|
</LumeDashboardTrigger>
|
||||||
|
);
|
||||||
|
};
|
||||||
const GivenTrigger = React.Children.toArray(
|
const GivenTrigger = React.Children.toArray(
|
||||||
children?.children || (children as any) || [],
|
children?.children || (children as any) || [],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue