Add phone service, rename phone app to dialer, etc improvements

This commit is contained in:
J Francisco Rader committed 2020-08-25 21:13:01 -03:00
1 parent bf2e7fa295
commit b2e0cba844
24 files changed
+311 -255

No files matched your search

+21 -11
View File
@@ -1,22 +1,32 @@
import React from "react";
import { Typography, Box, makeStyles } from "@material-ui/core";
import { useTranslation } from "react-i18next";
const useStyle = makeStyles(theme => ({
root: ({ color }) => ({
width: '100%',
textAlign: 'center',
backgroundColor: color || theme.palette.background.default
const useStyle = makeStyles((theme) => ({
root: ({ backgroundColor }) => ({
width: "100%",
textAlign: "center",
backgroundColor: backgroundColor || theme.palette.background.default,
}),
text: ({ color }) => ({
color: color || theme.palette.text.primary,
}),
text: {
color: theme.palette.text.primary
}
}));
export const AppTitle = ({ children, color, ...props }) => {
const classes = useStyle({ color });
export const AppTitle = ({
backgroundColor,
color,
nameLocale,
variant = "h4",
...props
}) => {
const classes = useStyle({ color, backgroundColor });
const { t } = useTranslation();
return (
<Box px={2} pt={4} className={classes.root} {...props}>
<Typography className={classes.text} paragraph variant="h4">{children}</Typography>
<Typography className={classes.text} paragraph variant={variant}>
{t(nameLocale)}
</Typography>
</Box>
);
};
+1 -1
View File
@@ -32,9 +32,9 @@ export const GridMenu = ({ items, Component = AppIcon }) => {
items.length &&
items.map((item) => (
<Grid
key={item.id}
item
className={classes.item}
key={item.name}
tabIndex="-1"
component={Link}
to={item.path}