Skip to content

Commit

Permalink
style(ui): reorder props destructuring in ContextMenuSubTrigger and M…
Browse files Browse the repository at this point in the history
…enubarSubTrigger components
  • Loading branch information
tszhong0411 committed Jan 14, 2025
1 parent f724594 commit cf041b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-ways-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tszhong0411/ui': patch
---

Reorder props destructuring in ContextMenuSubTrigger and MenubarSubTrigger components
2 changes: 1 addition & 1 deletion packages/ui/src/context-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type ContextMenuSubTriggerProps = {
} & React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger>

export const ContextMenuSubTrigger = (props: ContextMenuSubTriggerProps) => {
const { className, inset, children, ...rest } = props
const { className, children, inset, ...rest } = props

return (
<ContextMenuPrimitive.SubTrigger
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/menubar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type MenubarSubTriggerProps = {
} & React.ComponentProps<typeof MenubarPrimitive.SubTrigger>

export const MenubarSubTrigger = (props: MenubarSubTriggerProps) => {
const { className, inset, children, ...rest } = props
const { className, children, inset, ...rest } = props

return (
<MenubarPrimitive.SubTrigger
Expand Down

0 comments on commit cf041b7

Please sign in to comment.