Pass props to Icons, Add more color to card icons

This commit is contained in:
prayag17 committed 2023-03-23 13:21:55 +05:30
1 parent 5212e2c497
commit b66130950b
32 files changed
+86 -68

No files matched your search

+2 -7
View File
@@ -1,18 +1,13 @@
/** @format */
import PropTypes from "prop-types";
import SvgIcon from "@mui/material/SvgIcon";
import { mdiStarHalfFull } from "@mdi/js";
export const MdiStarHalfFull = ({ colorA }) => {
export const MdiStarHalfFull = (props) => {
return (
<SvgIcon sx={{ color: colorA }}>
<SvgIcon {...props}>
<path d={mdiStarHalfFull}></path>
</SvgIcon>
);
};
MdiStarHalfFull.propType = {
colorA: PropTypes.string,
};