mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
parent
4f78809c84
commit
70067fb87e
@ -13,11 +13,16 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
import { ReactElement } from 'react'
|
||||
import { useParams, Redirect } from 'react-router-dom'
|
||||
|
||||
import ClusterTabs from 'client/components/Tabs/Cluster'
|
||||
|
||||
/**
|
||||
* Displays the detail information about a Cluster.
|
||||
*
|
||||
* @returns {ReactElement} Cluster detail component.
|
||||
*/
|
||||
function ClusterDetail() {
|
||||
const { id } = useParams()
|
||||
|
||||
|
@ -13,11 +13,16 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
import { ReactElement } from 'react'
|
||||
import { useParams, Redirect } from 'react-router-dom'
|
||||
|
||||
// import GroupTabs from 'client/components/Tabs/Group'
|
||||
import GroupTabs from 'client/components/Tabs/Group'
|
||||
|
||||
/**
|
||||
* Displays the detail information about a Group.
|
||||
*
|
||||
* @returns {ReactElement} Group detail component.
|
||||
*/
|
||||
function GroupDetail() {
|
||||
const { id } = useParams()
|
||||
|
||||
@ -25,12 +30,7 @@ function GroupDetail() {
|
||||
return <Redirect to="/" />
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <GroupTabs id={id} /> */}
|
||||
{id}
|
||||
</>
|
||||
)
|
||||
return <GroupTabs id={id} />
|
||||
}
|
||||
|
||||
export default GroupDetail
|
||||
|
@ -13,11 +13,16 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
import { ReactElement } from 'react'
|
||||
import { useParams, Redirect } from 'react-router-dom'
|
||||
|
||||
import HostTabs from 'client/components/Tabs/Host'
|
||||
|
||||
/**
|
||||
* Displays the detail information about a Host.
|
||||
*
|
||||
* @returns {ReactElement} Host detail component.
|
||||
*/
|
||||
function HostDetail() {
|
||||
const { id } = useParams()
|
||||
|
||||
|
@ -13,11 +13,16 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
import { ReactElement } from 'react'
|
||||
import { useParams, Redirect } from 'react-router-dom'
|
||||
|
||||
import UserTabs from 'client/components/Tabs/User'
|
||||
|
||||
/**
|
||||
* Displays the detail information about a User.
|
||||
*
|
||||
* @returns {ReactElement} User detail component.
|
||||
*/
|
||||
function UserDetail() {
|
||||
const { id } = useParams()
|
||||
|
||||
|
@ -13,11 +13,16 @@
|
||||
* See the License for the specific language governing permissions and *
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
/* eslint-disable jsdoc/require-jsdoc */
|
||||
import { ReactElement } from 'react'
|
||||
import { useParams, Redirect } from 'react-router-dom'
|
||||
|
||||
import VmTabs from 'client/components/Tabs/Vm'
|
||||
|
||||
/**
|
||||
* Displays the detail information about a Virtual Machine.
|
||||
*
|
||||
* @returns {ReactElement} Virtual Machine detail component.
|
||||
*/
|
||||
function VirtualMachineDetail() {
|
||||
const { id } = useParams()
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
* limitations under the License. *
|
||||
* ------------------------------------------------------------------------- */
|
||||
import { ReactElement } from 'react'
|
||||
import { Stack } from '@mui/material'
|
||||
import { useParams, Redirect } from 'react-router-dom'
|
||||
|
||||
import VmTemplateTabs from 'client/components/Tabs/VmTemplate'
|
||||
@ -31,11 +30,7 @@ function VMTemplateDetail() {
|
||||
return <Redirect to="/" />
|
||||
}
|
||||
|
||||
return (
|
||||
<Stack height={1} overflow="auto">
|
||||
<VmTemplateTabs id={id} />
|
||||
</Stack>
|
||||
)
|
||||
return <VmTemplateTabs id={id} />
|
||||
}
|
||||
|
||||
export default VMTemplateDetail
|
||||
|
Loading…
x
Reference in New Issue
Block a user