Skip to content

Commit

Permalink
add props back
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 1, 2024
1 parent a4c7e2f commit e1ccacc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ export function Outer({
export function Item({children, label, style, onPress, ...rest}: ItemProps) {
const t = useTheme()
const {control} = React.useContext(Context)
const {state: focused} = useInteractionState()
const {
state: focused,
onIn: onHoverIn,
onOut: onHoverOut,
} = useInteractionState()
const {
state: pressed,
onIn: onPressIn,
Expand All @@ -119,8 +123,6 @@ export function Item({children, label, style, onPress, ...rest}: ItemProps) {
control?.close()
onPress(e)
}}
// onFocus={onFocus}
// onBlur={onBlur}
onPressIn={e => {
onPressIn()
rest.onPressIn?.(e)
Expand All @@ -129,6 +131,8 @@ export function Item({children, label, style, onPress, ...rest}: ItemProps) {
onPressOut()
rest.onPressOut?.(e)
}}
onHoverIn={onHoverIn}
onHoverOut={onHoverOut}
style={[
a.flex_row,
a.align_center,
Expand Down

0 comments on commit e1ccacc

Please sign in to comment.