revert radix chage

This commit is contained in:
Samuel Newman
2026-05-22 11:05:43 +03:00
parent 51ca00f2d7
commit 743dbe9db6
5 changed files with 23 additions and 29 deletions
+6 -8
View File
@@ -1,7 +1,5 @@
import {StyleSheet, View} from 'react-native'
import {DismissableLayer} from '@radix-ui/react-dismissable-layer'
import {useFocusGuards} from '@radix-ui/react-focus-guards'
import {FocusScope} from '@radix-ui/react-focus-scope'
import {DismissableLayer, FocusGuards, FocusScope} from 'radix-ui/internal'
import {RemoveScrollBar} from 'react-remove-scroll-bar'
import {useA11y} from '#/state/a11y'
@@ -38,11 +36,11 @@ function Inner({state}: {state: ComposerOpts}) {
const {gtMobile} = useBreakpoints()
const {reduceMotionEnabled} = useA11y()
useFocusGuards()
FocusGuards.useFocusGuards()
return (
<FocusScope loop trapped asChild>
<DismissableLayer
<FocusScope.FocusScope loop trapped asChild>
<DismissableLayer.DismissableLayer
role="dialog"
aria-modal
style={flatten([
@@ -86,8 +84,8 @@ function Inner({state}: {state: ComposerOpts}) {
openGallery={state.openGallery}
/>
</View>
</DismissableLayer>
</FocusScope>
</DismissableLayer.DismissableLayer>
</FocusScope.FocusScope>
)
}