Merge pull request #3486 from matrix-org/t3chguy/fixes

Fix PropTypes usage, sdk import path and GroupMemberTile letter-avatar
pull/21833/head
David Baker 2019-10-01 11:49:32 +01:00 committed by GitHub
commit a75fd1801c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,7 @@ module.exports = createReactClass({
// Extra node inserted after picker input, dropdown and errors // Extra node inserted after picker input, dropdown and errors
extraNode: PropTypes.node, extraNode: PropTypes.node,
value: PropTypes.string, value: PropTypes.string,
placeholder: PropTypes.oneOfType(PropTypes.string, PropTypes.func), placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
roomId: PropTypes.string, roomId: PropTypes.string,
button: PropTypes.string, button: PropTypes.string,
focus: PropTypes.bool, focus: PropTypes.bool,

View File

@ -59,7 +59,9 @@ export default createReactClass({
); );
const av = ( const av = (
<BaseAvatar name={this.props.member.userId} <BaseAvatar
name={this.props.member.displayname || this.props.member.userId}
idName={this.props.member.userId}
width={36} height={36} width={36} height={36}
url={avatarUrl} url={avatarUrl}
/> />

View File

@ -17,7 +17,7 @@ limitations under the License.
import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import {_t, pickBestLanguage} from "../../../languageHandler"; import {_t, pickBestLanguage} from "../../../languageHandler";
import sdk from "../../../.."; import sdk from "../../..";
export default class InlineTermsAgreement extends React.Component { export default class InlineTermsAgreement extends React.Component {
static propTypes = { static propTypes = {