diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-20 12:00:40 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-20 12:00:40 -0600 |
commit | a21bcf10dd794b69009b98c7789a7e87d696bfef (patch) | |
tree | 544929e06cfd3643b6cfe300b03186831f1ae13e /src/view/com/util/DropdownBtn.tsx | |
parent | 63348807b59ec82a905aa2a1164a1484e61aa29a (diff) | |
download | voidsky-a21bcf10dd794b69009b98c7789a7e87d696bfef.tar.zst |
Add build flags and disable tabs for now
Diffstat (limited to 'src/view/com/util/DropdownBtn.tsx')
-rw-r--r-- | src/view/com/util/DropdownBtn.tsx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/view/com/util/DropdownBtn.tsx b/src/view/com/util/DropdownBtn.tsx index bef193f1d..85e8453fd 100644 --- a/src/view/com/util/DropdownBtn.tsx +++ b/src/view/com/util/DropdownBtn.tsx @@ -14,6 +14,7 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {colors} from '../../lib/styles' import {useStores} from '../../../state' import {SharePostModel, ConfirmModel} from '../../../state/models/shell-ui' +import {TABS_ENABLED} from '../../../build-flags' export interface DropdownItem { icon?: IconProp @@ -82,13 +83,15 @@ export function PostDropdownBtn({ const store = useStores() const dropdownItems: DropdownItem[] = [ - { - icon: ['far', 'clone'], - label: 'Open in new tab', - onPress() { - store.nav.newTab(itemHref) - }, - }, + TABS_ENABLED + ? { + icon: ['far', 'clone'], + label: 'Open in new tab', + onPress() { + store.nav.newTab(itemHref) + }, + } + : undefined, { icon: 'share', label: 'Share...', |