mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-17 10:21:33 +03:00
couple bug fixed and #251 fixed
This commit is contained in:
parent
fa7b44575b
commit
210e1e3c9c
@ -55,13 +55,14 @@ class CommentsContainer extends Component {
|
||||
};
|
||||
|
||||
_handleOnReplyPress = (item) => {
|
||||
const { navigation } = this.props;
|
||||
const { navigation, fetchPost } = this.props;
|
||||
|
||||
navigation.navigate({
|
||||
routeName: ROUTES.SCREENS.EDITOR,
|
||||
params: {
|
||||
isReply: true,
|
||||
post: item,
|
||||
fetchPost,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
@ -29,7 +29,9 @@ class CommentsDisplayView extends Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { author, permlink, commentCount } = this.props;
|
||||
const {
|
||||
author, permlink, commentCount, fetchPost,
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
@ -42,7 +44,12 @@ class CommentsDisplayView extends Component {
|
||||
onDropdownSelect={this._handleOnDropdownSelect}
|
||||
/>
|
||||
<View style={{ padding: 16 }}>
|
||||
<Comments commentCount={commentCount} author={author} permlink={permlink} />
|
||||
<Comments
|
||||
fetchPost={fetchPost}
|
||||
commentCount={commentCount}
|
||||
author={author}
|
||||
permlink={permlink}
|
||||
/>
|
||||
</View>
|
||||
</Fragment>
|
||||
)}
|
||||
|
@ -108,7 +108,7 @@ class PostDisplayView extends Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { post, isFetchComments } = this.props;
|
||||
const { post, fetchPost } = this.props;
|
||||
const { postHeight, scrollHeight, isLoadedComments } = this.state;
|
||||
|
||||
const isPostEnd = scrollHeight > postHeight;
|
||||
@ -153,7 +153,7 @@ class PostDisplayView extends Component {
|
||||
author={post.author}
|
||||
permlink={post.permlink}
|
||||
commentCount={post.children}
|
||||
isFetchComments={isFetchComments}
|
||||
fetchPost={fetchPost}
|
||||
/>
|
||||
)}
|
||||
</ScrollView>
|
||||
|
@ -37,7 +37,7 @@ export default EStyleSheet.create({
|
||||
marginLeft: 15,
|
||||
},
|
||||
username: {
|
||||
color: '$white',
|
||||
color: '$pureWhite',
|
||||
fontWeight: 'bold',
|
||||
fontSize: 14,
|
||||
marginBottom: 8,
|
||||
|
@ -121,14 +121,15 @@ class TransactionView extends Component {
|
||||
|
||||
return (
|
||||
<View>
|
||||
<FilterBar
|
||||
{/* this feature not implemented yet */}
|
||||
{/* <FilterBar
|
||||
dropdownIconName="md-arrow-dropdown"
|
||||
options={['ALL TRANSACTIONS', 'VOTES', 'REPLIES']}
|
||||
defaultText="ALL TRANSACTIONS"
|
||||
onDropdownSelect={() => this._handleOnDropdownSelect()}
|
||||
rightIconName="ios-lock"
|
||||
iconSize={16}
|
||||
/>
|
||||
/> */}
|
||||
<Card>
|
||||
{transactions
|
||||
&& transactions.map((item, index) => {
|
||||
|
@ -4,5 +4,6 @@ export default EStyleSheet.create({
|
||||
avatar: {
|
||||
borderWidth: 0.75,
|
||||
borderColor: '$borderColor',
|
||||
backgroundColor: '$pureWhite',
|
||||
},
|
||||
});
|
||||
|
@ -7,36 +7,37 @@ const authMenuItems = [
|
||||
icon: 'perm-identity',
|
||||
id: 'profile',
|
||||
},
|
||||
{
|
||||
name: 'Bookmarks',
|
||||
route: 'bookmarks',
|
||||
icon: 'star-border',
|
||||
id: 'bookmarks',
|
||||
},
|
||||
{
|
||||
name: 'Favorites',
|
||||
route: 'favorites',
|
||||
icon: 'favorite-border',
|
||||
id: 'favorites',
|
||||
},
|
||||
{
|
||||
name: 'Drafts',
|
||||
route: 'drafts',
|
||||
icon: 'insert-drive-file',
|
||||
id: 'drafts',
|
||||
},
|
||||
{
|
||||
name: 'Schedules',
|
||||
route: 'schedules',
|
||||
icon: 'schedule',
|
||||
id: 'schedules',
|
||||
},
|
||||
{
|
||||
name: 'Gallery',
|
||||
route: 'galery',
|
||||
icon: 'photo-library',
|
||||
id: 'gallery',
|
||||
},
|
||||
// These are not ready yet!
|
||||
// {
|
||||
// name: 'Bookmarks',
|
||||
// route: 'bookmarks',
|
||||
// icon: 'star-border',
|
||||
// id: 'bookmarks',
|
||||
// },
|
||||
// {
|
||||
// name: 'Favorites',
|
||||
// route: 'favorites',
|
||||
// icon: 'favorite-border',
|
||||
// id: 'favorites',
|
||||
// },
|
||||
// {
|
||||
// name: 'Drafts',
|
||||
// route: 'drafts',
|
||||
// icon: 'insert-drive-file',
|
||||
// id: 'drafts',
|
||||
// },
|
||||
// {
|
||||
// name: 'Schedules',
|
||||
// route: 'schedules',
|
||||
// icon: 'schedule',
|
||||
// id: 'schedules',
|
||||
// },
|
||||
// {
|
||||
// name: 'Gallery',
|
||||
// route: 'galery',
|
||||
// icon: 'photo-library',
|
||||
// id: 'gallery',
|
||||
// },
|
||||
{
|
||||
name: 'Settings',
|
||||
route: ROUTES.SCREENS.SETTINGS,
|
||||
|
@ -29,6 +29,7 @@ export default {
|
||||
$shadowColor: '#b0b0b0',
|
||||
$disableGray: '#fff',
|
||||
$editorButtonColor: '#fff',
|
||||
$pureWhite: '#ffffff',
|
||||
// Devices Sizes
|
||||
$deviceHeight: Dimensions.get('window').height,
|
||||
$deviceWidth: Dimensions.get('window').width,
|
||||
|
@ -29,6 +29,8 @@ export default {
|
||||
$shadowColor: '#b0b0b0',
|
||||
$disableGray: '#fff',
|
||||
$editorButtonColor: '#3c4449',
|
||||
$pureWhite: '#ffffff',
|
||||
|
||||
// Devices Sizes
|
||||
$deviceHeight: Dimensions.get('window').height,
|
||||
$deviceWidth: Dimensions.get('window').width,
|
||||
|
Loading…
Reference in New Issue
Block a user