Commit d26bb495 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

make panels collapsible

parent 6e6d4fee
......@@ -117,7 +117,7 @@ class Component extends PureComponent {
return (
<Panel header="HTTP Client using OAuth Access Token" eventKey="1" collapsible={true} expanded={true}>
<Panel header="HTTP Client using OAuth Access Token" eventKey="1" collapsible={true} defaultExpanded={true}>
{userinfo}
......
......@@ -85,7 +85,7 @@ class Component extends PureComponent {
return (
<Panel header="HTTP Response" eventKey="1" collapsible={true} expanded={true}>
<Panel header="HTTP Response" eventKey="1" collapsible={true} defaultExpanded={true}>
<div>
<p><code>GET</code> request to <code>{this.props.http.url}</code></p>
{ loading }
......
......@@ -61,7 +61,7 @@ class Component extends PureComponent {
}
return (
<Panel header="OAuth Service Discovery" eventKey="1" collapsible={true} expanded={true}>
<Panel header="OAuth Service Discovery" eventKey="1" collapsible={true} defaultExpanded={true}>
<FormGroup
className="gutter"
controlId="formBasicText"
......
......@@ -82,7 +82,7 @@ class Component extends PureComponent {
let expanded = !!this.props.serverConfig
return (
<Panel header="OAuth Server Configuration" eventKey="2" collapsible={true} expanded={expanded}>
<Panel header="OAuth Server Configuration" eventKey="2" collapsible={true} defaultExpanded={expanded}>
<form>
<h4>OAuth Authorization endpoint</h4>
<FormGroup>
......
......@@ -48,7 +48,7 @@ class Component extends PureComponent {
}
return (
<Panel header="Access Token" eventKey="1" collapsible={true} expanded={true}>
<Panel header="Access Token" eventKey="1" collapsible={true} defaultExpanded={true}>
<p>This access token expires {extxt}</p>
<pre>{this.props.tokenstring}</pre>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment