couple bug fixed and #251 fixed

This commit is contained in:
u-e 2018-12-17 15:43:26 +03:00
parent fa7b44575b
commit 210e1e3c9c
9 changed files with 52 additions and 38 deletions

View File

@ -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,
},
});
};

View File

@ -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>
)}

View File

@ -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>

View File

@ -37,7 +37,7 @@ export default EStyleSheet.create({
marginLeft: 15,
},
username: {
color: '$white',
color: '$pureWhite',
fontWeight: 'bold',
fontSize: 14,
marginBottom: 8,

View File

@ -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) => {

View File

@ -4,5 +4,6 @@ export default EStyleSheet.create({
avatar: {
borderWidth: 0.75,
borderColor: '$borderColor',
backgroundColor: '$pureWhite',
},
});

View File

@ -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,

View File

@ -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,

View File

@ -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,