From 88fc2fb47af10a01cdfff49bd01b6f107b2cad4b Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 1 Feb 2019 15:33:05 -0600 Subject: [PATCH] Annotate guest state as class on home page --- src/components/structures/HomePage.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js index 4deccb17dd..18f1a2ba31 100644 --- a/src/components/structures/HomePage.js +++ b/src/components/structures/HomePage.js @@ -24,6 +24,7 @@ import { _t } from '../../languageHandler'; import sanitizeHtml from 'sanitize-html'; import sdk from '../../index'; import { MatrixClient } from 'matrix-js-sdk'; +import classnames from 'classnames'; class HomePage extends React.Component { static displayName = 'HomePage'; @@ -80,16 +81,22 @@ class HomePage extends React.Component { } render() { + const isGuest = this.context.matrixClient.isGuest(); + const classes = classnames({ + mx_HomePage: true, + mx_HomePage_guest: isGuest, + }); + if (this.state.iframeSrc) { return ( -
+