mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
ecd38674b1
commit
724e96533e
@ -20,6 +20,7 @@ import { styled, keyframes, lighten, darken } from '@mui/material'
|
||||
import Paper from '@mui/material/Paper'
|
||||
import Typography from '@mui/material/Typography'
|
||||
|
||||
import { Translate, Tr } from 'client/components/HOC'
|
||||
import { SCHEMES } from 'client/constants'
|
||||
|
||||
const Card = styled(Paper)(({ theme, bgcolor, onClick }) => {
|
||||
@ -89,9 +90,9 @@ const Wave = styled('span')(({ theme, bgcolor, duration = 1 }) => {
|
||||
|
||||
const WavesCard = memo(
|
||||
({ text, value, bgColor, icon: Icon, onClick }) => (
|
||||
<Card bgcolor={bgColor} onClick={onClick || undefined}>
|
||||
<Typography variant="h6" zIndex={2}>
|
||||
{text}
|
||||
<Card title={Tr(text)} bgcolor={bgColor} onClick={onClick || undefined}>
|
||||
<Typography variant="h6" zIndex={2} noWrap>
|
||||
<Translate word={text} />
|
||||
</Typography>
|
||||
<Typography variant="h4" zIndex={2}>
|
||||
{value}
|
||||
|
Loading…
x
Reference in New Issue
Block a user