Skip to content

Commit

Permalink
update profile user screen modified
Browse files Browse the repository at this point in the history
  • Loading branch information
tunaSalad2406 committed Jun 4, 2018
1 parent 05bd667 commit c895263
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/container/FriendProfileScreen/Details/Friends.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from "react";
import { Text, Body, Card, CardItem, Icon } from "native-base";
import { View } from "react-native";
import { Text, Card, CardItem, Icon } from "native-base";

class Friends extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion src/container/FriendProfileScreen/Details/Intro.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import { Text, Content, Card, CardItem, Icon } from "native-base";
import { Text, Card, CardItem, Icon } from "native-base";

class Intro extends Component {
render() {
Expand Down
20 changes: 13 additions & 7 deletions src/container/FriendProfileScreen/Details/Setting.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import { Text, Icon, Button, Card, CardItem } from "native-base";
import { Text, Icon, Button, Card, CardItem, Title, Body, Left, Right, Container, Header } from "native-base";
import { View, Modal } from "react-native";
import { connect } from "react-redux";
import SettingOptions from "./SettingOptions";
Expand Down Expand Up @@ -34,10 +34,10 @@ class Setting extends Component {
if (info.username === userInfo.username) {
return (
<Card style={{ margin: 10 }}>
<CardItem style={{flexDirection:"column"}}>
<CardItem style={{ flexDirection: "column" }}>
<Modal animationType="slide" transparent={false} visible={this.state.modalVisible}>
<View style={{ marginTop: 22 }}>
<View>
<Header style={{ marginTop: 22 }}>
<Left>
<Button
transparent
info
Expand All @@ -47,10 +47,16 @@ class Setting extends Component {
>
<Icon name="ios-backspace-outline" />
</Button>
</Left>
<Body>
<Title> Cập nhật </Title>
</Body>
<Right />
</Header>

<SettingOptions close={close} />
</View>
</View>
<Container>
<SettingOptions close={close} />
</Container>
</Modal>
<Button iconLeft light onPress={this.edit.bind(this)}>
<Icon name="ios-construct-outline" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class SettingOptions extends Component {
))
: null;
return (
<ScrollView style={{ margin: 20 }}>
<ScrollView style={{ margin: 20 }} showsHorizontalScrollIndicator={false}>
<Item inlineLabel>
<Input
value={this.state.lastName}
Expand Down
1 change: 0 additions & 1 deletion src/navigator/badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { graphql, compose, withApollo } from "react-apollo";
import NOTIFICATION_ADDED_SUBSCRIPTION from "../graphql/subscriptions/notificationAdded";
import update from "immutability-helper";

import { counting } from "./action";
import ME_QUERY from "../graphql/queries/me";

class NotificationNumber extends Component {
Expand Down

0 comments on commit c895263

Please sign in to comment.