From 95797bae999c772a2a4719c848d227422cfbe747 Mon Sep 17 00:00:00 2001 From: Mohamed Wael Date: Wed, 15 Apr 2020 19:08:14 +0100 Subject: [PATCH 1/5] fix Sales and Orders icons color The icons color was hardcoded on the svg file, I've set it to theme primary color variable --- src/home/components/HomePage/HomePage.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/home/components/HomePage/HomePage.tsx b/src/home/components/HomePage/HomePage.tsx index ff0dd069a..f4015a240 100644 --- a/src/home/components/HomePage/HomePage.tsx +++ b/src/home/components/HomePage/HomePage.tsx @@ -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 = props => {
} + icon={} > {sales ? ( @@ -96,7 +101,7 @@ const HomePage: React.FC = props => { } + icon={} > {orders === undefined ? ( From a7e9953ec6bfc54aadbc34918192852fa27fcf20 Mon Sep 17 00:00:00 2001 From: Mohamed Wael Date: Wed, 15 Apr 2020 19:13:19 +0100 Subject: [PATCH 2/5] fix icons colour The icons' colours were hardcoded in the SVG file, now they are set to the theme primary colour --- src/configuration/ConfigurationPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configuration/ConfigurationPage.tsx b/src/configuration/ConfigurationPage.tsx index 2704cd8be..8c4b742e6 100644 --- a/src/configuration/ConfigurationPage.tsx +++ b/src/configuration/ConfigurationPage.tsx @@ -76,7 +76,9 @@ const useStyles = makeStyles( margin: 0 }, icon: { - color: theme.palette.primary.main, + "& path":{ + fill:theme.palette.primary.main, + }, fontSize: 48 }, sectionDescription: {}, From 7ce69ad1306d05d04790202be6b7a7806c146fb8 Mon Sep 17 00:00:00 2001 From: Mohamed Wael Date: Wed, 15 Apr 2020 20:51:20 +0100 Subject: [PATCH 3/5] Sort icon childs alphabetically --- src/configuration/ConfigurationPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configuration/ConfigurationPage.tsx b/src/configuration/ConfigurationPage.tsx index 8c4b742e6..a4acc419e 100644 --- a/src/configuration/ConfigurationPage.tsx +++ b/src/configuration/ConfigurationPage.tsx @@ -76,10 +76,10 @@ const useStyles = makeStyles( margin: 0 }, icon: { + fontSize: 48, "& path":{ fill:theme.palette.primary.main, - }, - fontSize: 48 + } }, sectionDescription: {}, sectionTitle: { From 5ec066ea903f308be9ecbaddf5c57a036ee9446a Mon Sep 17 00:00:00 2001 From: Mohamed Wael Date: Thu, 16 Apr 2020 19:38:10 +0100 Subject: [PATCH 4/5] add routes zeit now configuration --- now.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 now.json diff --git a/now.json b/now.json new file mode 100644 index 000000000..ca7f10542 --- /dev/null +++ b/now.json @@ -0,0 +1,3 @@ +{ + "routes": [{ "src": "/.*", "dest": "" }] +} From 48c37b47537012e6ef5735618691e51adb4acf0e Mon Sep 17 00:00:00 2001 From: Mohamed Wael Date: Tue, 28 Apr 2020 14:06:58 +0100 Subject: [PATCH 5/5] Delete unneeded file --- now.json | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 now.json diff --git a/now.json b/now.json deleted file mode 100644 index ca7f10542..000000000 --- a/now.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "routes": [{ "src": "/.*", "dest": "" }] -}