Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 548x 2905x 2905x 209122x 55802x 55802x 55802x | import { isSecondVersion } from "@theme/v2/utils";
import { TypographyProps } from "@mui/material";
import { typography } from "../../typography";
export const getCustomTypographyStyle = () => {
const oldTypographyStyles = typography as any;
return {
root: {
variants: [
{
props: (props: TypographyProps) => {
return !isSecondVersion(props.version);
},
style: (props: TypographyProps) => {
const variant = props?.variant;
Iif (!variant) return {};
return oldTypographyStyles[variant] || {};
},
},
],
},
};
};
|