From 8b90adf32c39c5b32e44790d920266900285ca71 Mon Sep 17 00:00:00 2001 From: hkopser99 <144170694+hkopser99@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:42:08 +0100 Subject: [PATCH] Update AppDownloadLinks.tsx Moved Type declaration out of component scope. --- src/pages/settings/AppDownloadLinks.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/settings/AppDownloadLinks.tsx b/src/pages/settings/AppDownloadLinks.tsx index 009c00996d7a..5ded324e5b45 100644 --- a/src/pages/settings/AppDownloadLinks.tsx +++ b/src/pages/settings/AppDownloadLinks.tsx @@ -15,17 +15,17 @@ import CONST from '@src/CONST'; import type {TranslationPaths} from '@src/languages/types'; import ROUTES from '@src/ROUTES'; +type DownloadMenuItem = MenuItemProps & { + translationKey: TranslationPaths; + openAppDownloadLink: () => void; + downloadLink: string; +}; + function AppDownloadLinksPage() { const styles = useThemeStyles(); const {translate} = useLocalize(); const popoverAnchor = useRef(null); - type DownloadMenuItem = MenuItemProps & { - translationKey: TranslationPaths; - openAppDownloadLink: () => void; - downloadLink: string; - }; - const menuItems: DownloadMenuItem[] = [ { translationKey: 'initialSettingsPage.appDownloadLinks.android.label',