Render username, provider, and scheme in Purgatory to assist user
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>pull/10616/head
parent
a658af21f5
commit
32ca775b75
|
@ -13,7 +13,7 @@ const viewerCopy = (
|
||||||
</p>
|
</p>
|
||||||
)
|
)
|
||||||
|
|
||||||
const Purgatory = ({currentOrganization, role}) =>
|
const Purgatory = ({name, provider, scheme, currentOrganization, role}) =>
|
||||||
<div>
|
<div>
|
||||||
<div className="auth-page">
|
<div className="auth-page">
|
||||||
<div className="auth-box">
|
<div className="auth-box">
|
||||||
|
@ -25,6 +25,16 @@ const Purgatory = ({currentOrganization, role}) =>
|
||||||
</h3>
|
</h3>
|
||||||
{role === MEMBER_ROLE ? memberCopy : viewerCopy}
|
{role === MEMBER_ROLE ? memberCopy : viewerCopy}
|
||||||
<p>Contact your Administrator for assistance.</p>
|
<p>Contact your Administrator for assistance.</p>
|
||||||
|
<hr />
|
||||||
|
<pre>
|
||||||
|
<code>
|
||||||
|
username: {name}
|
||||||
|
<br />
|
||||||
|
provider: {provider}
|
||||||
|
<br />
|
||||||
|
scheme: {scheme}
|
||||||
|
</code>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p className="auth-credits">
|
<p className="auth-credits">
|
||||||
|
@ -37,6 +47,9 @@ const Purgatory = ({currentOrganization, role}) =>
|
||||||
const {shape, string} = PropTypes
|
const {shape, string} = PropTypes
|
||||||
|
|
||||||
Purgatory.propTypes = {
|
Purgatory.propTypes = {
|
||||||
|
name: string.isRequired,
|
||||||
|
provider: string.isRequired,
|
||||||
|
scheme: string.isRequired,
|
||||||
currentOrganization: shape({
|
currentOrganization: shape({
|
||||||
id: string.isRequired,
|
id: string.isRequired,
|
||||||
name: string.isRequired,
|
name: string.isRequired,
|
||||||
|
@ -44,7 +57,12 @@ Purgatory.propTypes = {
|
||||||
role: string.isRequired,
|
role: string.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapStateToProps = ({auth: {me: {currentOrganization, role}}}) => ({
|
const mapStateToProps = ({
|
||||||
|
auth: {me: {name, provider, scheme, currentOrganization, role}},
|
||||||
|
}) => ({
|
||||||
|
name,
|
||||||
|
provider,
|
||||||
|
scheme,
|
||||||
currentOrganization,
|
currentOrganization,
|
||||||
role,
|
role,
|
||||||
})
|
})
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
background-color: $g3-castle;
|
background-color: $g3-castle;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
height: 200px;
|
min-height: 200px;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -105,4 +105,8 @@
|
||||||
> p {
|
> p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue