mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Add phone service, rename phone app to dialer, etc improvements
This commit is contained in:
1 parent
bf2e7fa295
commit
b2e0cba844
24 files changed
+311
-255
No files matched your search
@@ -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>
|
||||
);
|
||||
};
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user