feat: update theme

This commit is contained in:
Ali BARIN
2021-12-09 19:51:42 +01:00
committed by Ömer Faruk Aydın
parent cab2d281f3
commit c855a5f555
8 changed files with 140 additions and 48 deletions

View File

@@ -2,7 +2,7 @@ import { Link } from 'react-router-dom';
import Card from '@mui/material/Card';
import Box from '@mui/material/Box';
import CardActionArea from '@mui/material/CardActionArea';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
import useFormatMessage from 'hooks/useFormatMessage';
import AppIcon from 'components/AppIcon';
@@ -14,7 +14,14 @@ type AppRowProps = {
application: App;
}
const countTranslation = (value: React.ReactNode) => (<><strong>{value}</strong><br /></>);
const countTranslation = (value: React.ReactNode) => (
<>
<Typography variant="body1">
{value}
</Typography>
<br />
</>
);
function AppRow(props: AppRowProps) {
const formatMessage = useFormatMessage();
@@ -36,19 +43,19 @@ function AppRow(props: AppRowProps) {
</Box>
<Box sx={{ px: 2 }}>
<Typography variant="body2">
<Typography variant="caption" color="textSecondary">
{formatMessage('app.connectionCount', { count: countTranslation(connectionCount) })}
</Typography>
</Box>
<Box sx={{ px: 2 }}>
<Typography variant="body2">
<Typography variant="caption" color="textSecondary">
{formatMessage('app.flowCount', { count: countTranslation(0) })}
</Typography>
</Box>
<Box>
<ChevronRightIcon />
<ArrowForwardIosIcon sx={{ color: (theme) => theme.palette.primary.main }} />
</Box>
</CardContent>
</CardActionArea>