mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working typescript compiling and fixing linting issues
This commit is contained in:
1 parent
b1babd88c2
commit
3273d192c9
49 files changed
+271
-110
No files matched your search
@@ -1,23 +1,37 @@
|
||||
import React from "react";
|
||||
import { Typography, Box, makeStyles } from "@material-ui/core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Variant } from "@material-ui/core/styles/createTypography";
|
||||
|
||||
const useStyle = makeStyles((theme) => ({
|
||||
root: ({ backgroundColor }) => ({
|
||||
width: "100%",
|
||||
textAlign: "center",
|
||||
backgroundColor: backgroundColor || theme.palette.background.default,
|
||||
}),
|
||||
text: ({ color }) => ({
|
||||
color: color || theme.palette.text.primary,
|
||||
}),
|
||||
}));
|
||||
interface IProps {
|
||||
app: any;
|
||||
className?: string;
|
||||
variant?: Variant;
|
||||
}
|
||||
|
||||
interface IUseStyle {
|
||||
root: any;
|
||||
text: any;
|
||||
}
|
||||
|
||||
const useStyle = makeStyles(
|
||||
(theme): IUseStyle => ({
|
||||
root: ({ backgroundColor }) => ({
|
||||
width: "100%",
|
||||
textAlign: "center",
|
||||
backgroundColor: backgroundColor || theme.palette.background.default,
|
||||
}),
|
||||
text: ({ color }) => ({
|
||||
color: color || theme.palette.text.primary,
|
||||
}),
|
||||
})
|
||||
);
|
||||
|
||||
export const AppTitle = ({
|
||||
app: { backgroundColor, color, nameLocale },
|
||||
variant = "h4",
|
||||
...props
|
||||
}) => {
|
||||
}: IProps) => {
|
||||
const classes = useStyle({ color, backgroundColor });
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user