Skip to content

Commit

Permalink
Update AppDownloadLinks.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
hkopser99 authored Feb 6, 2024
1 parent 73b15d0 commit 3297913
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/pages/settings/AppDownloadLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import React, {useRef} from 'react';
import {ScrollView} from 'react-native';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import type {View} from 'react-native';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import * as Expensicons from '@components/Icon/Expensicons';
import MenuItem from '@components/MenuItem';
import type {MenuItemProps} from '@components/MenuItem';
import ScreenWrapper from '@components/ScreenWrapper';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import * as ReportActionContextMenu from '@pages/home/report/ContextMenu/ReportActionContextMenu';
import * as Link from '@userActions/Link';
import type { View } from 'react-native';
import type { TranslationPaths } from '@src/languages/types';
import type { MenuItemProps } from '@components/MenuItem';
import CONST from '@src/CONST';
import type {TranslationPaths} from '@src/languages/types';
import ROUTES from '@src/ROUTES';

function AppDownloadLinksPage() {
const styles = useThemeStyles();
const { translate } = useLocalize();
const {translate} = useLocalize();
const popoverAnchor = useRef<View>(null);

type DownloadMenuItem = MenuItemProps & {
translationKey: TranslationPaths,
openAppDownloadLink: () => void,
downloadLink: string,
translationKey: TranslationPaths;
openAppDownloadLink: () => void;
downloadLink: string;
};

const menuItems: DownloadMenuItem[] = [
Expand Down Expand Up @@ -71,10 +71,10 @@ function AppDownloadLinksPage() {
ref={popoverAnchor}
title={translate(item.translationKey)}
icon={item.icon}
iconRight={item.iconRight}
iconRight={item.iconRight}
shouldBlockSelection
shouldShowRightIcon
/>
/>
))}
</ScrollView>
</ScreenWrapper>
Expand All @@ -84,4 +84,3 @@ function AppDownloadLinksPage() {
AppDownloadLinksPage.displayName = 'AppDownloadLinksPage';

export default AppDownloadLinksPage;

0 comments on commit 3297913

Please sign in to comment.