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