Add GroupAvatar to handle fallback images etc.

And a few misc tidyups
This commit is contained in:
David Baker 2017-06-29 17:51:38 +01:00
parent d6ecec1987
commit 84e13d5437
4 changed files with 74 additions and 14 deletions

View file

@ -15,6 +15,7 @@ limitations under the License.
*/
import React from 'react';
import PropTypes from 'prop-types';
import sdk from '../../../index';
import dis from '../../../dispatcher';
import { _t } from '../../../languageHandler';
@ -28,7 +29,7 @@ const GROUP_REGEX = /^\+(.*?):(.*)$/;
export default React.createClass({
displayName: 'CreateGroupDialog',
propTypes: {
onFinished: React.PropTypes.func.isRequired,
onFinished: PropTypes.func.isRequired,
},
getInitialState: function() {