From 7f25b0f261b5a5fc2696054004fb24673375b91b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 01:32:43 +0300 Subject: Proptypes & eslint --- vnext/src/components/Contacts.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vnext/src/components/Contacts.js') diff --git a/vnext/src/components/Contacts.js b/vnext/src/components/Contacts.js index 3f2e7288..84a6ec9f 100644 --- a/vnext/src/components/Contacts.js +++ b/vnext/src/components/Contacts.js @@ -1,4 +1,5 @@ import React from 'react'; + import { getChats } from '../api'; @@ -11,7 +12,7 @@ export default class Contacts extends React.Component { pms: [] }; } - componentWillMount() { + componentDidMount() { this.refreshChats(); } @@ -26,11 +27,10 @@ export default class Contacts extends React.Component { } render() { const { pms } = this.state; - const user = this.props.visitor; return (
-