Merge pull request #480 from wael-mohamed/master
The icons' colours are hardcoded in the SVG files
This commit is contained in:
commit
dc291eb9c9
2 changed files with 12 additions and 5 deletions
|
@ -76,8 +76,10 @@ const useStyles = makeStyles(
|
|||
margin: 0
|
||||
},
|
||||
icon: {
|
||||
color: theme.palette.primary.main,
|
||||
fontSize: 48
|
||||
fontSize: 48,
|
||||
"& path":{
|
||||
fill:theme.palette.primary.main,
|
||||
}
|
||||
},
|
||||
sectionDescription: {},
|
||||
sectionTitle: {
|
||||
|
|
|
@ -34,7 +34,12 @@ const useStyles = makeStyles(
|
|||
[theme.breakpoints.down("xs")]: {
|
||||
gridTemplateColumns: "1fr"
|
||||
}
|
||||
}
|
||||
},
|
||||
icon: {
|
||||
"& path":{
|
||||
fill:theme.palette.primary.main,
|
||||
}
|
||||
},
|
||||
}),
|
||||
{ name: "HomePage" }
|
||||
);
|
||||
|
@ -86,7 +91,7 @@ const HomePage: React.FC<HomePageProps> = props => {
|
|||
<div className={classes.cardContainer}>
|
||||
<HomeAnalyticsCard
|
||||
title={"Sales"}
|
||||
icon={<Sales fontSize={"inherit"} viewBox="0 0 64 64" />}
|
||||
icon={<Sales className={classes.icon} fontSize={"inherit"} viewBox="0 0 64 64" />}
|
||||
>
|
||||
{sales ? (
|
||||
<Money money={sales} />
|
||||
|
@ -96,7 +101,7 @@ const HomePage: React.FC<HomePageProps> = props => {
|
|||
</HomeAnalyticsCard>
|
||||
<HomeAnalyticsCard
|
||||
title={"Orders"}
|
||||
icon={<Orders fontSize={"inherit"} viewBox="0 0 64 64" />}
|
||||
icon={<Orders className={classes.icon} fontSize={"inherit"} viewBox="0 0 64 64" />}
|
||||
>
|
||||
{orders === undefined ? (
|
||||
<Skeleton style={{ width: "5em" }} />
|
||||
|
|
Loading…
Reference in a new issue