1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00
This commit is contained in:
Sergio Betanzos 2022-05-12 16:11:48 +02:00 committed by GitHub
parent 4f78809c84
commit 70067fb87e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 18 deletions

View File

@ -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()

View File

@ -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

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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