diff options
Diffstat (limited to 'src/view/com/profile/ProfileHeader.tsx')
-rw-r--r-- | src/view/com/profile/ProfileHeader.tsx | 68 |
1 files changed, 3 insertions, 65 deletions
diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 9325a88a3..1b25c7c13 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -1,12 +1,6 @@ import React, {useMemo} from 'react' import {observer} from 'mobx-react-lite' -import { - ActivityIndicator, - StyleSheet, - Text, - TouchableOpacity, - View, -} from 'react-native' +import {StyleSheet, Text, TouchableOpacity, View} from 'react-native' import LinearGradient from 'react-native-linear-gradient' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {AtUri} from '../../../third-party/uri' @@ -20,9 +14,8 @@ import { import {pluralize} from '../../../lib/strings' import {s, colors} from '../../lib/styles' import {getGradient} from '../../lib/asset-gen' -import {MagnifyingGlassIcon} from '../../lib/icons' import {DropdownBtn, DropdownItem} from '../util/DropdownBtn' -import Toast from '../util/Toast' +import * as Toast from '../util/Toast' import {LoadingPlaceholder} from '../util/LoadingPlaceholder' import {RichText} from '../util/RichText' import {UserAvatar} from '../util/UserAvatar' @@ -55,10 +48,6 @@ export const ProfileHeader = observer(function ProfileHeader({ `${view.myState.follow ? 'Following' : 'No longer following'} ${ view.displayName || view.handle }`, - { - duration: Toast.durations.LONG, - position: Toast.positions.TOP, - }, ) }, err => console.error('Failed to toggle follow', err), @@ -94,10 +83,7 @@ export const ProfileHeader = observer(function ProfileHeader({ did: store.me.did || '', rkey: new AtUri(view.myState.member).rkey, }) - Toast.show(`Scene left`, { - duration: Toast.durations.LONG, - position: Toast.positions.TOP, - }) + Toast.show(`Scene left`) } onRefreshAll() } @@ -108,18 +94,6 @@ export const ProfileHeader = observer(function ProfileHeader({ return ( <View style={styles.outer}> <LoadingPlaceholder width="100%" height={120} /> - {store.nav.tab.canGoBack ? ( - <TouchableOpacity style={styles.backButton} onPress={onPressBack}> - <FontAwesomeIcon - size={18} - icon="angle-left" - style={styles.backIcon} - /> - </TouchableOpacity> - ) : undefined} - <TouchableOpacity style={styles.searchBtn} onPress={onPressSearch}> - <MagnifyingGlassIcon size={19} style={styles.searchIcon} /> - </TouchableOpacity> <View style={styles.avi}> <LoadingPlaceholder width={80} @@ -179,18 +153,6 @@ export const ProfileHeader = observer(function ProfileHeader({ return ( <View style={styles.outer}> <UserBanner handle={view.handle} /> - {store.nav.tab.canGoBack ? ( - <TouchableOpacity style={styles.backButton} onPress={onPressBack}> - <FontAwesomeIcon - size={18} - icon="angle-left" - style={styles.backIcon} - /> - </TouchableOpacity> - ) : undefined} - <TouchableOpacity style={styles.searchBtn} onPress={onPressSearch}> - <MagnifyingGlassIcon size={19} style={styles.searchIcon} /> - </TouchableOpacity> <View style={styles.avi}> <UserAvatar size={80} @@ -353,30 +315,6 @@ const styles = StyleSheet.create({ width: '100%', height: 120, }, - backButton: { - position: 'absolute', - top: 10, - left: 12, - backgroundColor: '#ffff', - padding: 6, - borderRadius: 30, - }, - backIcon: { - width: 14, - height: 14, - color: colors.black, - }, - searchBtn: { - position: 'absolute', - top: 10, - right: 12, - backgroundColor: '#ffff', - padding: 5, - borderRadius: 30, - }, - searchIcon: { - color: colors.black, - }, avi: { position: 'absolute', top: 80, |