Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
zetavg committed Jan 21, 2024
1 parent fe3de5b commit ab89e1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions App/app/components/Menu/MenuView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type Props = {
title?: string;
/** Actions in the menu. */
actions: ReadonlyArray<MenuAction>;
children?: React.ReactNode | undefined;
children?: JSX.Element | undefined;
disabled?: boolean;
};

Expand Down Expand Up @@ -105,7 +105,7 @@ export default function MenuView({

const { showActionSheet } = useActionSheet();

if (disabled) return restProps.children || null;
if (disabled) return <>{restProps.children}</> || null;

if (Platform.OS === 'android') {
// @react-native-menu/menu will not work on Android randomly. Fall back to ActionSheet.
Expand Down
8 changes: 4 additions & 4 deletions App/app/components/Menu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export type MenuAction = {
// * @platform iOS
// */
// subtitle?: string;
/**
* The attributes indicating the style of the action.
*/
attributes?: MenuAttributes;
// /**
// * The attributes indicating the style of the action.
// */
// attributes?: MenuAttributes;
/**
* The state of the action.
*/
Expand Down

0 comments on commit ab89e1b

Please sign in to comment.