Commit a23da108 authored by Martin Santangelo's avatar Martin Santangelo

(chore) small code fixes and optimizations

parent 2800a778
No related merge requests found
......@@ -31,7 +31,6 @@ export default class CommentModel extends ActivityModel {
buildCommentsStore(parent) {
if (this.expanded && !this.comments) {
console.log('BUILD STORE FOR '+this.description)
this.comments = commentsStoreProvider.get();
this.comments.setParent(this);
this.parent = parent;
......
......@@ -181,6 +181,8 @@ export default class UserAutocomplete extends PureComponent {
*/
render() {
if (!this.state.tag) return null;
const users = this.renderUsers();
return (
......
......@@ -28,7 +28,7 @@ import colors from '../styles/Colors';
import Tags from '../common/components/Tags';
import CaptureFab from '../capture/CaptureFab';
import GroupHeader from './header/GroupHeader';
import { CommonStyle } from '../styles/Common';
import { CommonStyle as CS } from '../styles/Common';
import CommentList from '../comments/CommentList';
import NewsfeedList from '../newsfeed/NewsfeedList';
import CenteredLoading from '../common/components/CenteredLoading';
......@@ -204,9 +204,9 @@ export default class GroupViewScreen extends Component {
case 'desc':
const description = entities.decodeHTML(group.group.briefdescription).trim();
return (
<ScrollView style={CommonStyle.backgroundLight}>
<ScrollView style={CS.backgroundLight}>
{header}
<View style={CommonStyle.padding2x}>
<View style={CS.padding2x}>
<Tags>{description}</Tags>
</View>
</ScrollView>
......@@ -325,7 +325,7 @@ export default class GroupViewScreen extends Component {
null;
return (
<View style={{flex:1}}>
<View style={CS.flexContainer}>
{this.props.groupView.tab === 'feed' && <CaptureFab navigation={this.props.navigation} group={group} /> }
{this.getList()}
{memberActionSheet}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment