Skip to content

Commit

Permalink
fix(ci error): fix ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-sna committed Sep 23, 2019
1 parent 6f364ad commit 3d508a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions src/auth/screens/user-options.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ const updateText = locale => ({
});

class UserOptions extends Component {
static getDerivedStateFromProps(props, state) {
return props.locale !== state.locale
? {
updateText: updateText(props.locale).check,
locale: props.locale,
}
: null;
}

props: {
locale: string,
signOut: () => void,
Expand All @@ -85,15 +94,6 @@ class UserOptions extends Component {
return nextProps.locale !== this.props.locale;
}

static getDerivedStateFromProps(props, state) {
return props.locale !== state.locale
? {
updateText: updateText(props.locale).check,
locale: props.locale,
}
: null;
}

componentDidUpdate() {
const { locale, navigation } = this.props;
const navigationParams = NavigationActions.setParams({
Expand Down
8 changes: 4 additions & 4 deletions src/organization/screens/organization-profile.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const LoadingMembersContainer = styled.View`
`;

class OrganizationProfile extends Component {
static getDerivedStateFromProps() {
return { refreshing: false };
}

props: {
org: Object,
orgId: String,
Expand Down Expand Up @@ -68,10 +72,6 @@ class OrganizationProfile extends Component {
getOrgMembers(orgId);
}

static getDerivedStateFromProps() {
return { refreshing: false };
}

refresh = () => {
this.setState({ refreshing: true });
const { orgId, getOrgById, getOrgMembers } = this.props;
Expand Down

0 comments on commit 3d508a1

Please sign in to comment.