From 3f20849866c8c7a5c8f73f4982783a19a120469b Mon Sep 17 00:00:00 2001 From: Krzysztof Bialoglowicz Date: Tue, 10 Sep 2019 15:28:09 +0200 Subject: [PATCH] Fix homepage analytisc card --- .../HomeAnalyticsCard/HomeAnalyticsCard.tsx | 10 +++++---- src/home/components/HomePage/HomePage.tsx | 4 ++-- src/icons/Orders.tsx | 21 ++++--------------- src/icons/Sales.tsx | 21 ++++--------------- 4 files changed, 16 insertions(+), 40 deletions(-) diff --git a/src/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx b/src/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx index 9820f87a6..4f7f27223 100644 --- a/src/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx +++ b/src/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx @@ -15,7 +15,7 @@ const styles = (theme: Theme) => createStyles({ cardContent: { "&:last-child": { - paddingBottom: 16 + padding: `${theme.spacing.unit * 2}px ${theme.spacing.unit * 3}px` }, display: "grid", gridColumnGap: theme.spacing.unit * 3 + "px", @@ -28,12 +28,14 @@ const styles = (theme: Theme) => marginBottom: theme.spacing.unit * 3 }, cardSubtitle: { - color: theme.palette.text.secondary, + color: theme.palette.primary.main, height: "20px", - lineHeight: 0.9 + lineHeight: 0.9, + fontSize: 12 }, cardTitle: { - fontWeight: 600 as 600 + fontWeight: 500 as 500, + fontSize: 20 }, icon: { color: theme.palette.primary.contrastText, diff --git a/src/home/components/HomePage/HomePage.tsx b/src/home/components/HomePage/HomePage.tsx index 1607ee20f..4a34bf0ab 100644 --- a/src/home/components/HomePage/HomePage.tsx +++ b/src/home/components/HomePage/HomePage.tsx @@ -78,7 +78,7 @@ const HomePage = withStyles(styles, { name: "HomePage" })(
} + icon={} > {sales ? ( @@ -88,7 +88,7 @@ const HomePage = withStyles(styles, { name: "HomePage" })( } + icon={} > {orders === undefined ? ( diff --git a/src/icons/Orders.tsx b/src/icons/Orders.tsx index 14e6a0246..7a655a2e9 100644 --- a/src/icons/Orders.tsx +++ b/src/icons/Orders.tsx @@ -4,24 +4,11 @@ import React from "react"; export const Orders = createSvgIcon( <> - - - - - - ); Orders.displayName = "Orders"; diff --git a/src/icons/Sales.tsx b/src/icons/Sales.tsx index 4aba8d63c..b3276b05a 100644 --- a/src/icons/Sales.tsx +++ b/src/icons/Sales.tsx @@ -4,24 +4,11 @@ import React from "react"; export const Sales = createSvgIcon( <> - - - - - - ); Sales.displayName = "Sales";