Add build flags and disable tabs for now
This commit is contained in:
parent
63348807b5
commit
a21bcf10dd
7 changed files with 35 additions and 18 deletions
|
@ -5,11 +5,11 @@ import {BottomSheetScrollView, BottomSheetTextInput} from '@gorhom/bottom-sheet'
|
|||
import {useStores} from '../../../state'
|
||||
import {s, colors} from '../../lib/styles'
|
||||
import {
|
||||
IS_PROD_BUILD,
|
||||
LOCAL_DEV_SERVICE,
|
||||
STAGING_SERVICE,
|
||||
PROD_SERVICE,
|
||||
} from '../../../state/index'
|
||||
import {LOGIN_INCLUDE_DEV_SERVERS} from '../../../build-flags'
|
||||
|
||||
export const snapPoints = ['80%']
|
||||
|
||||
|
@ -36,7 +36,7 @@ export function Component({
|
|||
<Text style={[s.textCenter, s.bold, s.f18]}>Choose Service</Text>
|
||||
<BottomSheetScrollView style={styles.inner}>
|
||||
<View style={styles.group}>
|
||||
{!IS_PROD_BUILD ? (
|
||||
{LOGIN_INCLUDE_DEV_SERVERS ? (
|
||||
<>
|
||||
<TouchableOpacity
|
||||
style={styles.btn}
|
||||
|
|
|
@ -15,6 +15,7 @@ import {UserGroupIcon} from '../../lib/icons'
|
|||
import {useStores} from '../../../state'
|
||||
import {s} from '../../lib/styles'
|
||||
import {SCENE_EXPLAINER, TABS_EXPLAINER} from '../../lib/assets'
|
||||
import {TABS_ENABLED} from '../../../build-flags'
|
||||
|
||||
const Intro = () => (
|
||||
<View style={styles.explainer}>
|
||||
|
@ -85,8 +86,8 @@ export const FeatureExplainer = () => {
|
|||
const routes = [
|
||||
{key: 'intro', title: 'Intro'},
|
||||
{key: 'scenes', title: 'Scenes'},
|
||||
{key: 'tabs', title: 'Tabs'},
|
||||
]
|
||||
TABS_ENABLED ? {key: 'tabs', title: 'Tabs'} : undefined,
|
||||
].filter(Boolean)
|
||||
|
||||
const onPressSkip = () => store.onboard.next()
|
||||
const onPressNext = () => {
|
||||
|
|
|
@ -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...',
|
||||
|
|
|
@ -26,6 +26,7 @@ import Animated, {
|
|||
} from 'react-native-reanimated'
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||
import {IconProp} from '@fortawesome/fontawesome-svg-core'
|
||||
import {TABS_ENABLED} from '../../../build-flags'
|
||||
import {useStores} from '../../../state'
|
||||
import {NavigationModel} from '../../../state/models/navigation'
|
||||
import {match, MatchResult} from '../../routes'
|
||||
|
@ -331,11 +332,13 @@ export const MobileShell: React.FC = observer(() => {
|
|||
onPress={onPressSearch}
|
||||
onLongPress={doNewTab('/search')}
|
||||
/>
|
||||
<Btn
|
||||
icon={isTabsSelectorActive ? 'clone' : ['far', 'clone']}
|
||||
onPress={onPressTabs}
|
||||
tabCount={store.nav.tabCount}
|
||||
/>
|
||||
{TABS_ENABLED ? (
|
||||
<Btn
|
||||
icon={isTabsSelectorActive ? 'clone' : ['far', 'clone']}
|
||||
onPress={onPressTabs}
|
||||
tabCount={store.nav.tabCount}
|
||||
/>
|
||||
) : undefined}
|
||||
<Btn
|
||||
icon={isAtNotifications ? 'bell-solid' : 'bell'}
|
||||
onPress={onPressNotifications}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue