mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
fix feed selection
This commit is contained in:
parent
2fcb84623e
commit
ff8e479d73
@ -14,7 +14,7 @@ const Application = () => {
|
||||
if (showAnimation) {
|
||||
setTimeout(() => {
|
||||
setShowAnimation(false);
|
||||
}, 2000);
|
||||
}, 2833);
|
||||
}
|
||||
}, [showAnimation]);
|
||||
|
||||
|
@ -70,7 +70,7 @@ class ApplicationScreen extends Component {
|
||||
{isShowToastNotification && (
|
||||
<ToastNotification
|
||||
text={toastNotification}
|
||||
duration={2000}
|
||||
duration={3000}
|
||||
onHide={this._handleOnHideToastNotification}
|
||||
/>
|
||||
)}
|
||||
|
@ -16,15 +16,15 @@ import { POPULAR_FILTERS, POPULAR_FILTERS_VALUE } from '../../../constants/optio
|
||||
const FeedScreen = () => {
|
||||
return (
|
||||
<AccountContainer>
|
||||
{({ currentAccount, isLoggedIn }) => (
|
||||
{({ currentAccount }) => (
|
||||
<Fragment>
|
||||
<Header />
|
||||
<SafeAreaView style={styles.container}>
|
||||
<Posts
|
||||
filterOptions={[...POPULAR_FILTERS]}
|
||||
filterOptionsValue={[...POPULAR_FILTERS_VALUE]}
|
||||
getFor={isLoggedIn ? 'feed' : 'trending'}
|
||||
selectedOptionIndex={isLoggedIn ? 0 : 2}
|
||||
getFor={get(currentAccount, 'name', null) ? 'feed' : 'hot'}
|
||||
selectedOptionIndex={get(currentAccount, 'name', null) ? 0 : 2}
|
||||
feedUsername={get(currentAccount, 'name')}
|
||||
/>
|
||||
</SafeAreaView>
|
||||
|
Loading…
Reference in New Issue
Block a user