mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 03:25:24 +03:00
updated available wallet token
This commit is contained in:
parent
08d637b476
commit
3d8a530927
4
src/screens/wallet/children/walletTokens.tsx
Normal file
4
src/screens/wallet/children/walletTokens.tsx
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
const WALLET_TOKENS = ['ecency', 'hive', 'hive_dollar']
|
||||||
|
|
||||||
|
|
||||||
|
export default WALLET_TOKENS
|
@ -6,6 +6,7 @@ import { SafeAreaView, View, RefreshControl, Text } from 'react-native';
|
|||||||
// Containers
|
// Containers
|
||||||
import { FlatList } from 'react-native-gesture-handler';
|
import { FlatList } from 'react-native-gesture-handler';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
|
import { iteratorStream } from '@hiveio/dhive/lib/utils';
|
||||||
import { LoggedInContainer } from '../../../containers';
|
import { LoggedInContainer } from '../../../containers';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
@ -28,6 +29,8 @@ import styles from './walletScreenStyles';
|
|||||||
import POINTS, { POINTS_KEYS } from '../../../constants/options/points';
|
import POINTS, { POINTS_KEYS } from '../../../constants/options/points';
|
||||||
import { useAppSelector } from '../../../hooks';
|
import { useAppSelector } from '../../../hooks';
|
||||||
import CurrencyCard from '../children/currencyCard';
|
import CurrencyCard from '../children/currencyCard';
|
||||||
|
import WalletTokens from '../children/walletTokens';
|
||||||
|
import WALLET_TOKENS from '../children/walletTokens';
|
||||||
|
|
||||||
const HEADER_EXPANDED_HEIGHT = 312;
|
const HEADER_EXPANDED_HEIGHT = 312;
|
||||||
|
|
||||||
@ -124,7 +127,7 @@ const WalletScreen = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const _renderItem = ({ item, index }) => {
|
const _renderItem = ({ item, index }) => {
|
||||||
return <CurrencyCard id={item} />;
|
return <CurrencyCard id={item} notToken={item === 'ecency'} />;
|
||||||
};
|
};
|
||||||
|
|
||||||
const _renderLoading = () => {
|
const _renderLoading = () => {
|
||||||
@ -156,8 +159,6 @@ const WalletScreen = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const data = ['unclaimed', 'ecency', 'hive', 'hive_dollar'];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Header />
|
<Header />
|
||||||
@ -166,7 +167,7 @@ const WalletScreen = () => {
|
|||||||
{() => (
|
{() => (
|
||||||
<View style={styles.listWrapper}>
|
<View style={styles.listWrapper}>
|
||||||
<FlatList
|
<FlatList
|
||||||
data={data}
|
data={WALLET_TOKENS}
|
||||||
style={globalStyles.tabBarBottom}
|
style={globalStyles.tabBarBottom}
|
||||||
ListEmptyComponent={_renderLoading}
|
ListEmptyComponent={_renderLoading}
|
||||||
renderItem={_renderItem}
|
renderItem={_renderItem}
|
||||||
|
Loading…
Reference in New Issue
Block a user