mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
AccountDetail (#107)
This commit is contained in:
parent
3856d6eb61
commit
d8b73e1748
@ -71,7 +71,7 @@ const Console = (props) => {
|
||||
selection={selection}
|
||||
setSelection={setSelection}
|
||||
/>
|
||||
<Detail selection={selection} />
|
||||
<Detail user={props.user} selection={selection} />
|
||||
<Enable show={showEnableModal} onHide={closeEnableModal} token={props.user.token} />
|
||||
<Version show={showVersionModal} onHide={closeVersionModal} />
|
||||
</Container>
|
||||
|
9
ui/src/console/detail/AccountDetail.js
Normal file
9
ui/src/console/detail/AccountDetail.js
Normal file
@ -0,0 +1,9 @@
|
||||
const AccountDetail = (props) => {
|
||||
return (
|
||||
<div>
|
||||
<h2>Your Account: {props.user.email}</h2>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default AccountDetail;
|
@ -1,9 +1,14 @@
|
||||
import EnvironmentDetail from "./EnvironmentDetail";
|
||||
import AccountDetail from "./AccountDetail";
|
||||
|
||||
const Detail = (props) => {
|
||||
let detailComponent = <h1>{props.selection.id} ({props.selection.type})</h1>;
|
||||
|
||||
switch(props.selection.type) {
|
||||
case "account":
|
||||
detailComponent = <AccountDetail user={props.user} />;
|
||||
break;
|
||||
|
||||
case "environment":
|
||||
detailComponent = <EnvironmentDetail selection={props.selection} />;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user