Skip to content

Commit

Permalink
fix: Fix nested buttons in CreatePresetModal
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Jun 28, 2023
1 parent b4254b6 commit 0d1350d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/CreatePresetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ export function CreatePresetModal() {
} you currently have enabled. Enabling/disabling it will toggle them all at once.`}
triggerDisabled={enabledThemes === 0}
Trigger={
<button
disabled={enabledThemes === 0}
<div
className={`flex h-8 w-fit items-center justify-center gap-2 whitespace-nowrap rounded-full border-2 border-[#2e2e2e] px-4 py-2 text-sm font-bold ring-brandBlue transition duration-100 focus:ring-2 ${
enabledThemes > 0 ? "bg-[#2563eb]" : "pointer-events-none opacity-50"
}`}
>
<BiPlus />
<span>New Preset</span>
</button>
</div>
}
/>
</>
Expand Down

0 comments on commit 0d1350d

Please sign in to comment.