diff --git a/client/src/app/base/MenuSection.tsx b/client/src/app/base/MenuSection.tsx index 050070e0..33969f87 100644 --- a/client/src/app/base/MenuSection.tsx +++ b/client/src/app/base/MenuSection.tsx @@ -29,7 +29,6 @@ export function MenuSection(props: MenuSectionProps) { <> setOpen(!open)} - // @ts-ignore style={({hovered}) => [ styles.trigger, hovered && { @@ -56,7 +55,6 @@ export function MenuSection(props: MenuSectionProps) { accessibilityLabel={props.action.label} style={(e) => [ styles.action, - // @ts-ignore (e.hovered || root.hovered) && styles.actionVisible, ]}> {action => @@ -64,7 +62,6 @@ export function MenuSection(props: MenuSectionProps) { size={16} name={props.action?.icon || ''} color={ - // @ts-ignore action.hovered ? theme.colors.foreground : theme.colors.mutedForeground diff --git a/client/src/env.d.ts b/client/src/env.d.ts index f893eca2..be1968cc 100644 --- a/client/src/env.d.ts +++ b/client/src/env.d.ts @@ -1,2 +1,33 @@ /// /// + +import 'react-native'; + +declare module 'react-native' { + interface PressableStateCallbackType { + hovered?: boolean, + focused?: boolean, + } + interface ViewStyle { + transitionProperty?: string, + transitionDuration?: string, + } + interface TextProps { + accessibilityComponentType?: never, + accessibilityTraits?: never, + href?: string, + hrefAttrs?: { + rel: 'noreferrer', + target?: '_blank', + }, + } + interface ViewProps { + onClick?: (e: React.MouseEvent) => void, + accessibilityRole?: string, + href?: string, + hrefAttrs?: { + rel: 'noreferrer', + target?: '_blank', + }, + } +}