diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-04-25 00:15:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-24 16:15:46 -0500 |
commit | 278a54850b666c55f03469ebbe7415e4ccb7be41 (patch) | |
tree | e1e96c2930ac32bac9568e6f66536f966102c972 /src/components/Menu | |
parent | b6a6b1bab4683ea9e9dcdcc1b10665246b8f8662 (diff) | |
download | voidsky-278a54850b666c55f03469ebbe7415e4ccb7be41.tar.zst |
Keep all radix dependencies aligned by using single package (#8219)
* keep all radix deps aligned by using single package * import directly from `radix-ui` or `radix-ui/internal` * prevent radix leaking into native build
Diffstat (limited to 'src/components/Menu')
-rw-r--r-- | src/components/Menu/index.web.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/Menu/index.web.tsx b/src/components/Menu/index.web.tsx index ae021dcf1..27678bf2f 100644 --- a/src/components/Menu/index.web.tsx +++ b/src/components/Menu/index.web.tsx @@ -1,12 +1,12 @@ import React from 'react' -import {Pressable, StyleProp, View, ViewStyle} from 'react-native' +import {Pressable, type StyleProp, View, type ViewStyle} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import * as DropdownMenu from '@radix-ui/react-dropdown-menu' +import {DropdownMenu} from 'radix-ui' import {useA11y} from '#/state/a11y' import {atoms as a, flatten, useTheme, web} from '#/alf' -import * as Dialog from '#/components/Dialog' +import type * as Dialog from '#/components/Dialog' import {useInteractionState} from '#/components/hooks/useInteractionState' import { Context, @@ -15,13 +15,13 @@ import { useMenuItemContext, } from '#/components/Menu/context' import { - ContextType, - GroupProps, - ItemIconProps, - ItemProps, - ItemTextProps, - RadixPassThroughTriggerProps, - TriggerProps, + type ContextType, + type GroupProps, + type ItemIconProps, + type ItemProps, + type ItemTextProps, + type RadixPassThroughTriggerProps, + type TriggerProps, } from '#/components/Menu/types' import {Portal} from '#/components/Portal' import {Text} from '#/components/Typography' |