Skip to content

Commit

Permalink
🐛 fix : Sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
saiprabhu-dandanayak committed Feb 5, 2024
1 parent 9d6b11b commit cc06e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/atoms/typography/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ReactNode } from "react";
import { Typography, TypographyProps } from "@mui/material";
import { typography_DataTestId } from "../../../utils/constants";
import { TYPOGRAPHY_DATATESTID } from "../../../utils/constants";

interface CustomTypographyProps extends TypographyProps {
text: ReactNode;

}
const MuiTypography = ({ variant, sx, text, ...rest }: CustomTypographyProps) => (
<Typography data-testid={typography_DataTestId} variant={variant} sx={sx} {...rest}>
<Typography data-testid={TYPOGRAPHY_DATATESTID} variant={variant} sx={sx} {...rest}>
{text}
</Typography>
);
Expand Down

0 comments on commit cc06e60

Please sign in to comment.