Pass props to Icons, Add more color to card icons
This commit is contained in:
32 files changed
+86
-68
No files matched your search
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user