1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #5422: Add translates to dashboard (#2051)

This commit is contained in:
Sergio Betanzos 2022-05-18 12:49:05 +02:00 committed by GitHub
parent ecd38674b1
commit 724e96533e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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