fix: pass props to trigger and add disabled button styling

This commit is contained in:
Derrick Hammer 2023-10-12 14:47:33 -04:00
parent 8014c5a86c
commit cccdfdedbb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 2 deletions

View File

@ -30,9 +30,14 @@ const LumeDashboard = (props: any) => {
}, [networks]);
const DefaultTrigger = (props: any) => (
<LumeDashboardTrigger asChild>
<LumeDashboardTrigger asChild {...props}>
<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}>
Open Dashboard
</button>