Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Replace icons on home page
dominik-zeglenb0f84078e23f
diff --git a/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx b/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsxindex 2ec0478faa..5baf825c60 100644--- a/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx@@ -19,7 +19,7 @@ const styles = (theme: Theme) =>paddingBottom: 16},display: "grid",- gridColumnGap: theme.spacing.unit * 1 + "px",+ gridColumnGap: theme.spacing.unit * 3 + "px",gridTemplateColumns: "1fr 64px"},cardSpacing: {@@ -42,13 +42,16 @@ const styles = (theme: Theme) =>margin: ".5rem .3rem"},iconBackground: {- backgroundColor: theme.palette.primary.main,+ backgroundColor: theme.palette.background.default,borderRadius: "8px",color: "white",fontSize: "54px",height: "100%",padding: "10px 5px 0px 5px",width: "100%"+ },+ value: {+ textAlign: "right"}});@@ -73,7 +76,11 @@ const HomeAnalyticsCard = withStyles(styles, { name: "HomeAnalyticsCard" })(>{i18n.t("Today")}</Typography>- <Typography color="textPrimary" variant="headline">+ <Typography+ className={classes.value}+ color="textPrimary"+ variant="display1"+ >{children}</Typography></div>diff --git a/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx b/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsxindex 7e7c263d11..90b5027af6 100644--- a/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx+++ b/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx@@ -4,8 +4,6 @@ import {withStyles,WithStyles} from "@material-ui/core/styles";-import AttachMoney from "@material-ui/icons/AttachMoney";-import LocalShipping from "@material-ui/icons/LocalShipping";import * as React from "react";import CardSpacer from "../../../components/CardSpacer";@@ -13,6 +11,8 @@ import Container from "../../../components/Container";import Grid from "../../../components/Grid";import Money from "../../../components/Money";import Skeleton from "../../../components/Skeleton";+import Orders from "../../../icons/Orders";+import Sales from "../../../icons/Sales";import {Home_activities_edges_node,Home_productTopToday_edges_node,@@ -78,7 +78,7 @@ const HomePage = withStyles(styles, { name: "HomePage" })(<div className={classes.cardContainer}><HomeAnalyticsCardtitle={"Sales"}- icon={<AttachMoney fontSize={"inherit"} />}+ icon={<Sales fontSize={"inherit"} viewBox="0 0 48 48" />}>{sales ? (<Money money={sales} />@@ -88,7 +88,7 @@ const HomePage = withStyles(styles, { name: "HomePage" })(</HomeAnalyticsCard><HomeAnalyticsCardtitle={"Orders"}- icon={<LocalShipping fontSize={"inherit"} />}+ icon={<Orders fontSize={"inherit"} viewBox="0 0 48 48" />}>{orders === undefined ? (<Skeleton style={{ width: "5em" }} />diff --git a/saleor/static/dashboard-next/icons/Orders.tsx b/saleor/static/dashboard-next/icons/Orders.tsxnew file mode 100644index 0000000000..6746d9316c--- /dev/null+++ b/saleor/static/dashboard-next/icons/Orders.tsx@@ -0,0 +1,28 @@+import createSvgIcon from "@material-ui/icons/utils/createSvgIcon";+import * as React from "react";++export const Orders = createSvgIcon(+ <>+ <path+ fill-rule="evenodd"+ clip-rule="evenodd"+ d="M34.5789 6H9V42H34.5789V36.7895H32.6842V40.1053H10.8947V7.89474H32.6842V25.4211H34.5789V6ZM31.7369 35.2872L39.5121 27.5121L38.1723 26.1723L31.7369 32.6077L28.6173 29.4881L27.2775 30.8279L31.7369 35.2872ZM14.6842 11.6842H17.5263V14.5263H14.6842V11.6842ZM27.9474 11.6842H19.4211V14.5263H27.9474V11.6842ZM14.6842 17.3684H17.5263V20.2105H14.6842V17.3684ZM27.9474 17.3684H19.4211V20.2105H27.9474V17.3684ZM14.6842 23.0526H17.5263V25.8947H14.6842V23.0526ZM27.9474 23.0526H19.4211V25.8947H27.9474V23.0526Z"+ fill="url(#paint0_linear)"+ />+ <defs>+ <linearGradient+ id="paint0_linear"+ x1="9"+ y1="6"+ x2="48.3106"+ y2="40.6161"+ gradientUnits="userSpaceOnUse"+ >+ <stop stop-color="#13BEBB" />+ <stop offset="1" stop-color="#3EE7CD" />+ </linearGradient>+ </defs>+ </>+);+Orders.displayName = "Orders";+export default Orders;diff --git a/saleor/static/dashboard-next/icons/Sales.tsx b/saleor/static/dashboard-next/icons/Sales.tsxnew file mode 100644index 0000000000..ac05ffd2e5--- /dev/null+++ b/saleor/static/dashboard-next/icons/Sales.tsx@@ -0,0 +1,28 @@+import createSvgIcon from "@material-ui/icons/utils/createSvgIcon";+import * as React from "react";++export const Sales = createSvgIcon(+ <>+ <path+ fill-rule="evenodd"+ clip-rule="evenodd"+ d="M31.4911 6H40.8033V14.5361L37.0667 11.1109L26.5267 21.6509L16.854 19.7163L7.49492 30.9473L6 29.7015L16.1003 17.5811L25.8871 19.5385L35.6308 9.79474L31.4911 6ZM13.0731 35.1892H9.18117V40.0541H13.0731V35.1892ZM7.23522 33.2432V42H15.019V33.2432H7.23522ZM17.9379 25.4595H21.8298V40.0541H17.9379V25.4595ZM15.992 42V23.5135H23.7758V42H15.992ZM30.5866 28.3784H26.6947V40.0541H30.5866V28.3784ZM24.7487 26.4324V42H32.5325V26.4324H24.7487ZM35.4514 19.6216H39.3433V40.0541H35.4514V19.6216ZM33.5055 42V17.6757H41.2893V42H33.5055Z"+ fill="url(#paint0_linear)"+ />+ <defs>+ <linearGradient+ id="paint0_linear"+ x1="6"+ y1="6"+ x2="45.6223"+ y2="46.3533"+ gradientUnits="userSpaceOnUse"+ >+ <stop stop-color="#13BEBB" />+ <stop offset="1" stop-color="#3EE7CD" />+ </linearGradient>+ </defs>+ </>+);+Sales.displayName = "Sales";+export default Sales;