Skip to content

Commit

Permalink
Update MobileBrowserBottomOptions.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming committed Feb 12, 2025
1 parent f820202 commit b4eb205
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,30 @@ function MobileBrowserBottomOptions({
onPress: () => onPinnedPress(!isPinned),
testID: `action-list-item-${!isPinned ? 'pin' : 'un-pin'}`,
},
// Enable desktop mode by default on iPad
platformEnv.isNativeIOSPad
? undefined
? {
label: intl.formatMessage({
id:
siteMode === ESiteMode.mobile
? ETranslations.browser_request_desktop_site
: ETranslations.browser_request_mobile_site,
}),
icon:
siteMode === ESiteMode.mobile
? 'ComputerOutline'
: 'PhoneOutline',
onPress: () => {
onRequestSiteMode(
siteMode === ESiteMode.mobile
? ESiteMode.desktop
: ESiteMode.mobile,
);
},
testID: `action-list-item-${
siteMode === ESiteMode.desktop ? 'desktop' : 'mobile'
}`,
}
: {
label: intl.formatMessage({
id:
Expand Down

0 comments on commit b4eb205

Please sign in to comment.