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

+4
View File
@@ -29,6 +29,10 @@ export const CardLandscape = ({ itemName, itemId, imageTags, iconType }) => {
"/Images/Primary"
}
alt={itemName}
sx={{
width: "100%",
aspectRatio: 1.777,
}}
className="card-image-container"
></CardMedia>
) : (
+3 -2
View File
@@ -23,6 +23,7 @@
}
&-icon {
font-size: 4.5em !important;
fill: url(#clr-gradient-default) !important;
&-container {
display: flex !important;
@@ -30,8 +31,8 @@
justify-content: center;
align-items: center;
width: 100% !important;
color: $clr-accent-default;
background: $clr-accent-dark;
color: transparent;
background: $clr-gradient-dark;
z-index: 0;
}
}
+2 -2
View File
@@ -6,9 +6,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiAccount } from "@mdi/js";
export const MdiAccount = () => {
export const MdiAccount = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiAccount}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiArrowLeft } from "@mdi/js";
export const MdiArrowLeft = () => {
export const MdiArrowLeft = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiArrowLeft}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiBook } from "@mdi/js";
export const MdiBook = () => {
export const MdiBook = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiBook}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiBookMultiple } from "@mdi/js";
export const MdiBookMultiple = () => {
export const MdiBookMultiple = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiBookMultiple}></path>
</SvgIcon>
);
+2 -2
View File
@@ -3,9 +3,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiChevronLeft } from "@mdi/js";
export const MdiChevronLeft = () => {
export const MdiChevronLeft = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiChevronLeft}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiChevronRight } from "@mdi/js";
export const MdiChevronRight = () => {
export const MdiChevronRight = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiChevronRight}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiEyeOffOutline } from "@mdi/js";
export const MdiEyeOffOutline = () => {
export const MdiEyeOffOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiEyeOffOutline}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiEyeOutline } from "@mdi/js";
export const MdiEyeOutline = () => {
export const MdiEyeOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiEyeOutline}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiFilmstrip } from "@mdi/js";
export const MdiFilmstrip = () => {
export const MdiFilmstrip = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiFilmstrip}></path>
</SvgIcon>
);
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiFolderMusicOutline } from "@mdi/js";
export const MdiFolderMusicOutline = () => {
export const MdiFolderMusicOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiFolderMusicOutline}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiFolderOutline } from "@mdi/js";
export const MdiFolderOutline = () => {
export const MdiFolderOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiFolderOutline}></path>
</SvgIcon>
);
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiHomeVariantOutline } from "@mdi/js";
export const MdiHomeVariantOutline = () => {
export const MdiHomeVariantOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiHomeVariantOutline}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiImage } from "@mdi/js";
export const MdiImage = () => {
export const MdiImage = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiImage}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiImageMultiple } from "@mdi/js";
export const MdiImageMultiple = () => {
export const MdiImageMultiple = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiImageMultiple}></path>
</SvgIcon>
);
+2 -2
View File
@@ -3,9 +3,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiLogoutVariant } from "@mdi/js";
export const MdiLogoutVariant = () => {
export const MdiLogoutVariant = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiLogoutVariant}></path>
</SvgIcon>
);
+2 -2
View File
@@ -3,9 +3,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiMenu } from "@mdi/js";
export const MdiMenu = () => {
export const MdiMenu = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiMenu}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiMicrophone } from "@mdi/js";
export const MdiMicrophone = () => {
export const MdiMicrophone = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiMicrophone}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiMovieOutline } from "@mdi/js";
export const MdiMovieOutline = () => {
export const MdiMovieOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiMovieOutline}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiMultimedia } from "@mdi/js";
export const MdiMultimedia = () => {
export const MdiMultimedia = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiMultimedia}></path>
</SvgIcon>
);
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiMusicBoxMultipleOutline } from "@mdi/js";
export const MdiMusicBoxMultipleOutline = () => {
export const MdiMusicBoxMultipleOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiMusicBoxMultipleOutline}></path>
</SvgIcon>
);
+2 -2
View File
@@ -3,9 +3,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiPlay } from "@mdi/js";
export const MdiPlay = () => {
export const MdiPlay = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiPlay}></path>
</SvgIcon>
);
+2 -2
View File
@@ -3,9 +3,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiPlayOutline } from "@mdi/js";
export const MdiPlayOutline = () => {
export const MdiPlayOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiPlayOutline}></path>
</SvgIcon>
);
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiPlaylistMusicOutline } from "@mdi/js";
export const MdiPlaylistMusicOutline = () => {
export const MdiPlaylistMusicOutline = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiPlaylistMusicOutline}></path>
</SvgIcon>
);
+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,
};
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiTelevision } from "@mdi/js";
export const MdiTelevision = () => {
export const MdiTelevision = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiTelevision}></path>
</SvgIcon>
);
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiTelevisionClassic } from "@mdi/js";
export const MdiTelevisionClassic = () => {
export const MdiTelevisionClassic = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiTelevisionClassic}></path>
</SvgIcon>
);
+2 -2
View File
@@ -4,9 +4,9 @@ import SvgIcon from "@mui/material/SvgIcon";
import { mdiYoutube } from "@mdi/js";
export const MdiYoutube = () => {
export const MdiYoutube = (props) => {
return (
<SvgIcon>
<SvgIcon {...props}>
<path d={mdiYoutube}></path>
</SvgIcon>
);