Skip to content

Commit

Permalink
Removing Box component from DropdownMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jan 7, 2025
1 parent dd75bb7 commit 3131c07
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/DropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { forwardRef } from 'react'

import { CheckmarkIcon } from '~/icons'

import { Box } from '../Box'
import { Divider } from '../Divider'
import { Text } from '../Text'

Expand Down Expand Up @@ -46,12 +45,9 @@ export const DropdownMenuItem = ({
}: DropdownMenuPrimitive.DropdownMenuItemProps) => (
<DropdownMenuPrimitive.Item
className={clsx(styles.item, className)}
asChild
{...rest}
>
<Box>
<Text variant="small">{children}</Text>
</Box>
<Text variant="small">{children}</Text>
</DropdownMenuPrimitive.Item>
)

Expand Down

0 comments on commit 3131c07

Please sign in to comment.