Fix newpost and ready for new version
This commit is contained in:
@@ -104,23 +104,26 @@ let Profile = ({ navigation, route }) => {
|
||||
backgroundColor: "#c44d56",
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
elevation: 10,
|
||||
zIndex: 1,
|
||||
}}>
|
||||
<IconButton icon={showNewPost ? 'remove' : "add"} mode="outlined" color="white" onPress={()=>{
|
||||
setShowNewPost(!showNewPost);
|
||||
//setShowNewPost(!showNewPost);
|
||||
navigation.navigate('NewPost', {toProfile: profile._id})
|
||||
}} />
|
||||
</View>
|
||||
<Button title="Images" icon={tag == 'images' ? 'remove' : "image"} mode="outlined" onPress={()=>{
|
||||
<Button style={{paddingLeft:12, backgroundColor:"#fff"}} title="Images" icon={tag == 'images' ? 'remove' : "image"} mode="outlined" onPress={()=>{
|
||||
if(tag == 'images') return setTag('');
|
||||
setTag('images');
|
||||
}}>Images</Button>
|
||||
<Button title="Media" icon={tag == 'media' ? 'remove' : "subscriptions"} mode="outlined" onPress={()=>{
|
||||
}}>{tag == 'images' ? "Images" : ''}</Button>
|
||||
<Button style={{paddingLeft:12, backgroundColor:"#fff"}} title="Media" icon={tag == 'media' ? 'remove' : "subscriptions"} mode="outlined" onPress={()=>{
|
||||
if(tag == 'media') return setTag('');
|
||||
setTag('media');
|
||||
}}>Media</Button>
|
||||
<Button title="Embedded" icon={tag == 'embedded' ? 'remove' : "folder"} mode="outlined" onPress={()=>{
|
||||
}}>{tag == 'media' ? "Media" : ''}</Button>
|
||||
<Button style={{paddingLeft:12, backgroundColor:"#fff"}} title="Embedded" icon={tag == 'embedded' ? 'remove' : "folder"} mode="outlined" onPress={()=>{
|
||||
if(tag == 'embedded') return setTag('');
|
||||
setTag('embedded');
|
||||
}}>Files</Button>
|
||||
}}>{tag == 'embedded' ? "Files" : ''}</Button>
|
||||
</View>
|
||||
{ showNewPost ?
|
||||
<NewPost newPostCB={(newPost) => setPosts([newPost, ...Posts])} />
|
||||
|
||||
Reference in New Issue
Block a user