Skip to content

Commit

Permalink
refactor(dashboard): simplify Sheet component usage in CreateWorkflow…
Browse files Browse the repository at this point in the history
…Button
  • Loading branch information
BiswaViraj committed Nov 19, 2024
1 parent 6b831bb commit bc0de01
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apps/dashboard/src/components/create-workflow-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ export const CreateWorkflowButton = (props: CreateWorkflowButtonProps) => {
});

return (
<Sheet
open={isOpen}
onOpenChange={(open) => {
setIsOpen(open);
}}
>
<Sheet open={isOpen} onOpenChange={setIsOpen}>
<SheetTrigger {...props} />
<SheetContent onOpenAutoFocus={(e) => e.preventDefault()}>
<SheetHeader>
Expand Down

0 comments on commit bc0de01

Please sign in to comment.