fix: pass props to trigger and add disabled button styling
This commit is contained in:
parent
8014c5a86c
commit
cccdfdedbb
|
@ -30,9 +30,14 @@ const LumeDashboard = (props: any) => {
|
||||||
}, [networks]);
|
}, [networks]);
|
||||||
|
|
||||||
const DefaultTrigger = (props: any) => (
|
const DefaultTrigger = (props: any) => (
|
||||||
<LumeDashboardTrigger asChild>
|
<LumeDashboardTrigger asChild {...props}>
|
||||||
<button
|
<button
|
||||||
className="bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md"
|
className={cn(
|
||||||
|
"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,
|
||||||
|
},
|
||||||
|
)}
|
||||||
{...props}>
|
{...props}>
|
||||||
Open Dashboard
|
Open Dashboard
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue