Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use primary button color instead of secondary
dominik-zeglene2ed83a18fe5
diff --git a/saleor/static/dashboard-next/categories/components/CategoryBackground/CategoryBackground.tsx b/saleor/static/dashboard-next/categories/components/CategoryBackground/CategoryBackground.tsxindex ae93112819..49237c6b27 100644--- a/saleor/static/dashboard-next/categories/components/CategoryBackground/CategoryBackground.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryBackground/CategoryBackground.tsx@@ -77,7 +77,7 @@ export const CategoryBackground = withStyles(styles)(<><Buttonvariant="text"- color="secondary"+ color="primary"onClick={this.clickImgInput}>{i18n.t("Upload image")}diff --git a/saleor/static/dashboard-next/categories/components/CategoryCreateSubcategories/CategoryCreateSubcategories.tsx b/saleor/static/dashboard-next/categories/components/CategoryCreateSubcategories/CategoryCreateSubcategories.tsxindex f181bf9139..ede2f6b9ce 100644--- a/saleor/static/dashboard-next/categories/components/CategoryCreateSubcategories/CategoryCreateSubcategories.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryCreateSubcategories/CategoryCreateSubcategories.tsx@@ -84,7 +84,7 @@ export const CategoryCreateSubcategories = withStyles(styles, {<div className={classes.inputGrid}><TextField label={i18n.t("Category Name")} /><TextField label={i18n.t("Category Description")} />- <IconButton className={classes.deleteIcon} color="secondary">+ <IconButton className={classes.deleteIcon} color="primary"><DeleteIcon /></IconButton></div>@@ -92,7 +92,7 @@ export const CategoryCreateSubcategories = withStyles(styles, {<Hr /><Buttonvariant="text"- color="secondary"+ color="primary"className={classes.addSubCat}>{i18n.t("Add subcategory")}diff --git a/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx b/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsxindex eb2cefc5a4..ffb5f34e10 100644--- a/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx@@ -60,7 +60,7 @@ const CategoryList = withStyles(styles, { name: "CategoryList" })(<CardTitletitle={i18n.t("All Subcategories")}toolbar={- <Button color="secondary" variant="text" onClick={onAdd}>+ <Button color="primary" variant="text" onClick={onAdd}>{i18n.t("Add subcategory")}</Button>}diff --git a/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsx b/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsxindex 0ca7358e1d..82b8a758de 100644--- a/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsx@@ -32,7 +32,7 @@ export const CategoryListPage: React.StatelessComponent<CategoryTableProps> = ({}) => (<Container><PageHeader title={i18n.t("Category")}>- <Button color="secondary" variant="contained" onClick={onAdd}>+ <Button color="primary" variant="contained" onClick={onAdd}>{i18n.t("Add category")} <AddIcon /></Button></PageHeader>diff --git a/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx b/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsxindex ccba12bfab..170cf6e93e 100644--- a/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryProducts/CategoryProducts.tsx@@ -64,7 +64,7 @@ export const ProductList = withStyles(styles, { name: "ProductList" })(<CardTitletitle={i18n.t("Products")}toolbar={- <Button variant="text" color="secondary" onClick={onAddProduct}>+ <Button variant="text" color="primary" onClick={onAddProduct}>{i18n.t("Add product")}</Button>}diff --git a/saleor/static/dashboard-next/categories/components/CategoryProductsCard/CategoryProductsCard.tsx b/saleor/static/dashboard-next/categories/components/CategoryProductsCard/CategoryProductsCard.tsxindex f6544f3619..afd6605357 100644--- a/saleor/static/dashboard-next/categories/components/CategoryProductsCard/CategoryProductsCard.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryProductsCard/CategoryProductsCard.tsx@@ -29,7 +29,7 @@ export const CategoryProductsCard: React.StatelessComponent<<CardTitletitle={i18n.t("Products in {{ categoryName }}", { categoryName })}toolbar={- <Button color="secondary" variant="text" onClick={onAdd}>+ <Button color="primary" variant="text" onClick={onAdd}>{i18n.t("Add product")}</Button>}diff --git a/saleor/static/dashboard-next/collections/components/CollectionImage/CollectionImage.tsx b/saleor/static/dashboard-next/collections/components/CollectionImage/CollectionImage.tsxindex b922cb54e4..426bf50686 100644--- a/saleor/static/dashboard-next/collections/components/CollectionImage/CollectionImage.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionImage/CollectionImage.tsx@@ -87,7 +87,7 @@ export const CollectionImage = withStyles(styles)(<><Buttonvariant="text"- color="secondary"+ color="primary"onClick={this.clickImgInput}>{i18n.t("Upload image")}diff --git a/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsx b/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsxindex b14e64f63b..fc1d47a190 100644--- a/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsx@@ -21,7 +21,7 @@ const CollectionListPage: React.StatelessComponent<CollectionListPageProps> = ({<Container><PageHeader title={i18n.t("Collections", { context: "page title" })}><Button- color="secondary"+ color="primary"disabled={disabled}variant="contained"onClick={onAdd}diff --git a/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx b/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsxindex 8866b246d8..179fc60fbe 100644--- a/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx@@ -73,7 +73,7 @@ const CollectionProducts = withStyles(styles, { name: "CollectionProducts" })(<Buttondisabled={disabled}variant="text"- color="secondary"+ color="primary"onClick={onAdd}>{i18n.t("Assign product", {@@ -147,7 +147,7 @@ const CollectionProducts = withStyles(styles, { name: "CollectionProducts" })(disabled={!product}onClick={event => onProductUnassign(product.id, event)}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsxindex 82c5db090f..6637f9fb3e 100644--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx@@ -176,7 +176,7 @@ const AppLayout = withStyles(styles, {className={classNames(classes.appLoader, {[classes.hide]: !isProgressVisible})}- color="secondary"+ color="primary"/><div className={classes.root}><div className={classes.sideBar}>diff --git a/saleor/static/dashboard-next/components/CardMenu/CardMenu.tsx b/saleor/static/dashboard-next/components/CardMenu/CardMenu.tsxindex 4e5af5af38..4135ce4183 100644--- a/saleor/static/dashboard-next/components/CardMenu/CardMenu.tsx+++ b/saleor/static/dashboard-next/components/CardMenu/CardMenu.tsx@@ -67,7 +67,7 @@ const CardMenu = withStyles(styles, {aria-owns={open ? "long-menu" : null}aria-haspopup="true"className={classes.iconButton}- color="secondary"+ color="primary"disabled={disabled}onClick={handleClick}>diff --git a/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx b/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsxindex 0653ea114f..b1a1c7b912 100644--- a/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx+++ b/saleor/static/dashboard-next/components/ConfirmButton/ConfirmButton.tsx@@ -134,7 +134,7 @@ const ConfirmButton = withStyles(styles)(<Buttonvariant="contained"onClick={transitionState === "loading" ? undefined : onClick}- color="secondary"+ color="primary"className={classNames({[classes.error]:transitionState === "error" && displayCompletedActionState,diff --git a/saleor/static/dashboard-next/components/CountryList/CountryList.tsx b/saleor/static/dashboard-next/components/CountryList/CountryList.tsxindex 95e94fdab7..0771973b39 100644--- a/saleor/static/dashboard-next/components/CountryList/CountryList.tsx+++ b/saleor/static/dashboard-next/components/CountryList/CountryList.tsx@@ -99,7 +99,7 @@ const CountryList = withStyles(styles, {toolbar={<Buttonvariant="flat"- color="secondary"+ color="primary"onClick={onCountryAssign}>{i18n.t("Assign countries")}@@ -159,7 +159,7 @@ const CountryList = withStyles(styles, {)}><IconButton- color="secondary"+ color="primary"disabled={!country || disabled}onClick={() => onCountryUnassign(country.code)}>diff --git a/saleor/static/dashboard-next/components/ErrorPage/ErrorPage.tsx b/saleor/static/dashboard-next/components/ErrorPage/ErrorPage.tsxindex 17fdc7ef7d..494a7aab66 100644--- a/saleor/static/dashboard-next/components/ErrorPage/ErrorPage.tsx+++ b/saleor/static/dashboard-next/components/ErrorPage/ErrorPage.tsx@@ -81,7 +81,7 @@ const ErrorPage = withStyles(styles, { name: "NotFoundPage" })(<div><ButtonclassName={classes.button}- color="secondary"+ color="primary"variant="contained"onClick={onBack}>diff --git a/saleor/static/dashboard-next/components/ExternalLink/ExternalLink.tsx b/saleor/static/dashboard-next/components/ExternalLink/ExternalLink.tsxindex edd91b1174..d3b64db1dd 100644--- a/saleor/static/dashboard-next/components/ExternalLink/ExternalLink.tsx+++ b/saleor/static/dashboard-next/components/ExternalLink/ExternalLink.tsx@@ -26,7 +26,7 @@ const ExternalLink = withStyles(styles, { name: "ExternalLink" })(...props}: ExternalLinkProps) => (<a href={href} className={classes.link} {...props}>- <Typography className={className} color="secondary" {...typographyProps}>+ <Typography className={className} color="primary" {...typographyProps}>{children}</Typography></a>diff --git a/saleor/static/dashboard-next/components/ImageTile/ImageTile.tsx b/saleor/static/dashboard-next/components/ImageTile/ImageTile.tsxindex df0b6fe5a3..deb2c8f93d 100644--- a/saleor/static/dashboard-next/components/ImageTile/ImageTile.tsx+++ b/saleor/static/dashboard-next/components/ImageTile/ImageTile.tsx@@ -64,12 +64,12 @@ const ImageTile = withStyles(styles, { name: "ImageTile" })(<div className={classes.imageOverlay}><div className={classes.imageOverlayToolbar}>{onImageEdit && (- <IconButton color="secondary" onClick={onImageEdit}>+ <IconButton color="primary" onClick={onImageEdit}><EditIcon /></IconButton>)}{onImageDelete && (- <IconButton color="secondary" onClick={onImageDelete}>+ <IconButton color="primary" onClick={onImageDelete}><DeleteIcon /></IconButton>)}diff --git a/saleor/static/dashboard-next/components/ListField/ListField.tsx b/saleor/static/dashboard-next/components/ListField/ListField.tsxindex d158c4c35b..de9f196039 100644--- a/saleor/static/dashboard-next/components/ListField/ListField.tsx+++ b/saleor/static/dashboard-next/components/ListField/ListField.tsx@@ -114,7 +114,7 @@ const ListField = withStyles(styles)(endAdornment: (<Buttonvariant="text"- color="secondary"+ color="primary"onClick={this.handleValueAdd}>{i18n.t("Add", { context: "button" })}diff --git a/saleor/static/dashboard-next/components/NotFoundPage/NotFoundPage.tsx b/saleor/static/dashboard-next/components/NotFoundPage/NotFoundPage.tsxindex c414ab5eab..5ecbd40530 100644--- a/saleor/static/dashboard-next/components/NotFoundPage/NotFoundPage.tsx+++ b/saleor/static/dashboard-next/components/NotFoundPage/NotFoundPage.tsx@@ -75,7 +75,7 @@ const NotFoundPage = withStyles(styles, { name: "NotFoundPage" })(<div><ButtonclassName={classes.button}- color="secondary"+ color="primary"variant="contained"onClick={onBack}>diff --git a/saleor/static/dashboard-next/components/RichTextEditor/ImageEntity.tsx b/saleor/static/dashboard-next/components/RichTextEditor/ImageEntity.tsxindex 025d4e39c1..7b05ee4d87 100644--- a/saleor/static/dashboard-next/components/RichTextEditor/ImageEntity.tsx+++ b/saleor/static/dashboard-next/components/RichTextEditor/ImageEntity.tsx@@ -88,13 +88,13 @@ const ImageEntity = withStyles(styles, {disable();onEdit(entityKey);}}- color="secondary"+ color="primary"variant="flat">{i18n.t("Replace")}</Button><IconButton onClick={() => onRemove(entityKey)}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></div></ClickAwayListener>diff --git a/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsx b/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsxindex f7b26a4d8b..c3ee90d93c 100644--- a/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsx+++ b/saleor/static/dashboard-next/components/RichTextEditor/ImageSource.tsx@@ -86,7 +86,7 @@ class ImageSource extends React.Component<ImageSourceProps> {<Button onClick={onClose}>{i18n.t("Cancel", { context: "button" })}</Button>- <Button onClick={submit} color="secondary" variant="contained">+ <Button onClick={submit} color="primary" variant="contained">{i18n.t("Save", { context: "button" })}</Button></DialogActions>diff --git a/saleor/static/dashboard-next/components/RichTextEditor/LinkEntity.tsx b/saleor/static/dashboard-next/components/RichTextEditor/LinkEntity.tsxindex 331c155958..0e79c6b70d 100644--- a/saleor/static/dashboard-next/components/RichTextEditor/LinkEntity.tsx+++ b/saleor/static/dashboard-next/components/RichTextEditor/LinkEntity.tsx@@ -106,13 +106,13 @@ const LinkEntity = withStyles(styles, {disable();onEdit(entityKey);}}- color="secondary"+ color="primary"variant="flat">{i18n.t("Edit")}</Button><IconButton onClick={() => onRemove(entityKey)}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></div></ClickAwayListener>diff --git a/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsx b/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsxindex 0eefaebab2..9a4b78321a 100644--- a/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsx+++ b/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsx@@ -92,7 +92,7 @@ const SeoForm = withStyles(styles, { name: "SeoForm" })(<CardTitletitle={i18n.t("Search Engine Preview")}toolbar={- <Button color="secondary" variant="text" onClick={toggle}>+ <Button color="primary" variant="text" onClick={toggle}>{i18n.t("Edit website SEO")}</Button>}diff --git a/saleor/static/dashboard-next/customers/components/CustomerAddress/CustomerAddress.tsx b/saleor/static/dashboard-next/customers/components/CustomerAddress/CustomerAddress.tsxindex c5fb144cdd..265b1c46cf 100644--- a/saleor/static/dashboard-next/customers/components/CustomerAddress/CustomerAddress.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerAddress/CustomerAddress.tsx@@ -101,7 +101,7 @@ const CustomerAddress = withStyles(styles, { name: "CustomerAddress" })(<div className={classes.actionsContainer}><CardActions className={classes.actions}><Button- color="secondary"+ color="primary"disabled={disabled}variant="flat"onClick={onEdit}@@ -109,7 +109,7 @@ const CustomerAddress = withStyles(styles, { name: "CustomerAddress" })({i18n.t("Edit")}</Button><Button- color="secondary"+ color="primary"disabled={disabled}variant="flat"onClick={onRemove}diff --git a/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx b/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsxindex fd27c3986f..6cce41858c 100644--- a/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx@@ -95,7 +95,7 @@ const CustomerAddressDialog = withStyles(styles, {})(</Button><ConfirmButtontransitionState={confirmButtonState}- color="secondary"+ color="primary"variant="contained"onClick={submit}type="submit"diff --git a/saleor/static/dashboard-next/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx b/saleor/static/dashboard-next/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsxindex e315e6fe3f..2712c77a7a 100644--- a/saleor/static/dashboard-next/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx@@ -80,7 +80,7 @@ const CustomerAddressListPage = withStyles(styles, {}))}>- <Button color="secondary" variant="contained" onClick={onAdd}>+ <Button color="primary" variant="contained" onClick={onAdd}>{i18n.t("Add address", {context: "add customer address"})}@@ -100,7 +100,7 @@ const CustomerAddressListPage = withStyles(styles, {</Typography><ButtonclassName={classes.addButton}- color="secondary"+ color="primary"variant="contained"onClick={onAdd}>diff --git a/saleor/static/dashboard-next/customers/components/CustomerAddresses/CustomerAddresses.tsx b/saleor/static/dashboard-next/customers/components/CustomerAddresses/CustomerAddresses.tsxindex 4931d9c87e..2e5ba6ab76 100644--- a/saleor/static/dashboard-next/customers/components/CustomerAddresses/CustomerAddresses.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerAddresses/CustomerAddresses.tsx@@ -43,7 +43,7 @@ const CustomerAddresses = withStyles(styles, { name: "CustomerAddresses" })(title={i18n.t("Address Information")}toolbar={<Button- color="secondary"+ color="primary"disabled={disabled}variant="text"onClick={onAddressManageClick}diff --git a/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsx b/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsxindex 83d8858ee3..fd70648705 100644--- a/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsx@@ -22,7 +22,7 @@ const CustomerListPage: React.StatelessComponent<CustomerListPageProps> = ({<Container><PageHeader title={i18n.t("Customers")}><Button- color="secondary"+ color="primary"variant="contained"disabled={disabled}onClick={onAdd}diff --git a/saleor/static/dashboard-next/customers/components/CustomerOrders/CustomerOrders.tsx b/saleor/static/dashboard-next/customers/components/CustomerOrders/CustomerOrders.tsxindex 75a471840f..35193462a8 100644--- a/saleor/static/dashboard-next/customers/components/CustomerOrders/CustomerOrders.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerOrders/CustomerOrders.tsx@@ -52,7 +52,7 @@ const CustomerOrders = withStyles(styles, { name: "CustomerOrders" })(toolbar={<Buttonvariant="text"- color="secondary"+ color="primary"onClick={onViewAllOrdersClick}>{i18n.t("View all orders")}diff --git a/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsx b/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsxindex 05c739c0c1..16bb2f847e 100644--- a/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsx+++ b/saleor/static/dashboard-next/discounts/components/DiscountCategories/DiscountCategories.tsx@@ -69,7 +69,7 @@ const DiscountCategories = withStyles(styles, {saleName: maybe(() => sale.name)})}toolbar={- <Button variant="flat" color="secondary" onClick={onCategoryAssign}>+ <Button variant="flat" color="primary" onClick={onCategoryAssign}>{i18n.t("Assign categories")}</Button>}@@ -126,7 +126,7 @@ const DiscountCategories = withStyles(styles, {onCategoryUnassign(category.id);}}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx b/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsxindex 429f7bf13a..81a718b6c3 100644--- a/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx+++ b/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx@@ -69,7 +69,7 @@ const DiscountCollections = withStyles(styles, {saleName: maybe(() => sale.name)})}toolbar={- <Button variant="flat" color="secondary" onClick={onCollectionAssign}>+ <Button variant="flat" color="primary" onClick={onCollectionAssign}>{i18n.t("Assign collections")}</Button>}@@ -126,7 +126,7 @@ const DiscountCollections = withStyles(styles, {onCollectionUnassign(collection.id);}}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsx b/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsxindex df86837cdf..e64b9af9fc 100644--- a/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsx+++ b/saleor/static/dashboard-next/discounts/components/DiscountProducts/DiscountProducts.tsx@@ -71,7 +71,7 @@ const DiscountProducts = withStyles(styles, {saleName: maybe(() => sale.name)})}toolbar={- <Button variant="flat" color="secondary" onClick={onProductAssign}>+ <Button variant="flat" color="primary" onClick={onProductAssign}>{i18n.t("Assign products")}</Button>}@@ -151,7 +151,7 @@ const DiscountProducts = withStyles(styles, {onProductUnassign(product.id);}}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsx b/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsxindex 46a82271b0..cfcd4c81bd 100644--- a/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsx+++ b/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsx@@ -26,7 +26,7 @@ const SaleListPage: React.StatelessComponent<SaleListPageProps> = ({}) => (<Container><PageHeader title={i18n.t("Sales")}>- <Button onClick={onAdd} variant="contained" color="secondary">+ <Button onClick={onAdd} variant="contained" color="primary">{i18n.t("Add sale")}<AddIcon /></Button>diff --git a/saleor/static/dashboard-next/discounts/components/VoucherListPage/VoucherListPage.tsx b/saleor/static/dashboard-next/discounts/components/VoucherListPage/VoucherListPage.tsxindex c30bd5c621..74c7e3eb52 100644--- a/saleor/static/dashboard-next/discounts/components/VoucherListPage/VoucherListPage.tsx+++ b/saleor/static/dashboard-next/discounts/components/VoucherListPage/VoucherListPage.tsx@@ -26,7 +26,7 @@ const VoucherListPage: React.StatelessComponent<VoucherListPageProps> = ({}) => (<Container><PageHeader title={i18n.t("Vouchers")}>- <Button onClick={onAdd} variant="contained" color="secondary">+ <Button onClick={onAdd} variant="contained" color="primary">{i18n.t("Add voucher")}<AddIcon /></Button>diff --git a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsxindex c9daf76225..a265f8df33 100644--- a/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderCustomer/OrderCustomer.tsx@@ -87,7 +87,7 @@ const OrderCustomer = withStyles(styles, { name: "OrderCustomer" })(toolbar={!!canEditCustomer && (<Button- color="secondary"+ color="primary"variant="text"disabled={!onCustomerEdit}onClick={toggleEditMode}@@ -179,7 +179,7 @@ const OrderCustomer = withStyles(styles, { name: "OrderCustomer" })({canEditAddresses && (<div className={classes.sectionHeaderToolbar}><Button- color="secondary"+ color="primary"variant="text"onClick={onShippingAddressEdit}disabled={!onShippingAddressEdit && user === undefined}@@ -232,7 +232,7 @@ const OrderCustomer = withStyles(styles, { name: "OrderCustomer" })({canEditAddresses && (<div className={classes.sectionHeaderToolbar}><Button- color="secondary"+ color="primary"variant="text"onClick={onBillingAddressEdit}disabled={!onBillingAddressEdit && user === undefined}diff --git a/saleor/static/dashboard-next/orders/components/OrderDraftDetails/OrderDraftDetails.tsx b/saleor/static/dashboard-next/orders/components/OrderDraftDetails/OrderDraftDetails.tsxindex 9747468f6d..741dcdfdf4 100644--- a/saleor/static/dashboard-next/orders/components/OrderDraftDetails/OrderDraftDetails.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderDraftDetails/OrderDraftDetails.tsx@@ -36,7 +36,7 @@ const OrderDraftDetails: React.StatelessComponent<OrderDraftDetailsProps> = ({context: "card title"})}toolbar={- <Button color="secondary" variant="text" onClick={onOrderLineAdd}>+ <Button color="primary" variant="text" onClick={onOrderLineAdd}>{i18n.t("Add products", {context: "button"})}diff --git a/saleor/static/dashboard-next/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx b/saleor/static/dashboard-next/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsxindex a19bfaacb6..13c0b95ae9 100644--- a/saleor/static/dashboard-next/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderDraftDetailsProducts/OrderDraftDetailsProducts.tsx@@ -153,7 +153,7 @@ const OrderDraftDetailsProducts = withStyles(styles, {</TableCell><TableCell className={classes.iconCell}><IconButton onClick={() => onOrderLineRemove(line.id)}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsx b/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsxindex 936913752c..3ad0aaa820 100644--- a/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsx@@ -26,7 +26,7 @@ const OrderDraftListPage: React.StatelessComponent<OrderDraftListPageProps> = ({<Container><PageHeader title={i18n.t("Draft Orders")}><Button- color="secondary"+ color="primary"variant="contained"disabled={disabled}onClick={onAdd}diff --git a/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsx b/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsxindex 4653a385ac..562e27925d 100644--- a/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderFulfillment/OrderFulfillment.tsx@@ -185,7 +185,7 @@ const OrderFulfillment = withStyles(styles, { name: "OrderFulfillment" })(</Table>{status === FulfillmentStatus.FULFILLED && !fulfillment.trackingNumber && (<CardActions>- <Button color="secondary" onClick={onTrackingCodeAdd}>+ <Button color="primary" onClick={onTrackingCodeAdd}>{i18n.t("Add tracking")}</Button></CardActions>diff --git a/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsx b/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsxindex 47ea43f357..8422619df8 100644--- a/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderListPage/OrderListPage.tsx@@ -40,7 +40,7 @@ const OrderListPage: React.StatelessComponent<OrderListPageProps> = ({<Container><PageHeader title={i18n.t("Orders")}><Button- color="secondary"+ color="primary"variant="contained"disabled={disabled}onClick={onAdd}diff --git a/saleor/static/dashboard-next/orders/components/OrderPayment/OrderPayment.tsx b/saleor/static/dashboard-next/orders/components/OrderPayment/OrderPayment.tsxindex a8ab1c54bb..9c4b9cd1d7 100644--- a/saleor/static/dashboard-next/orders/components/OrderPayment/OrderPayment.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderPayment/OrderPayment.tsx@@ -201,23 +201,23 @@ const OrderPayment = withStyles(styles, { name: "OrderPayment" })(<Hr /><CardActions>{canCapture && (- <Button color="secondary" variant="text" onClick={onCapture}>+ <Button color="primary" variant="text" onClick={onCapture}>{i18n.t("Capture", { context: "button" })}</Button>)}{canRefund && (- <Button color="secondary" variant="text" onClick={onRefund}>+ <Button color="primary" variant="text" onClick={onRefund}>{i18n.t("Refund", { context: "button" })}</Button>)}{canVoid && (- <Button color="secondary" variant="text" onClick={onVoid}>+ <Button color="primary" variant="text" onClick={onVoid}>{i18n.t("Void", { context: "button" })}</Button>)}{canMarkAsPaid && (<Button- color="secondary"+ color="primary"variant="text"onClick={onMarkAsPaid}>diff --git a/saleor/static/dashboard-next/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx b/saleor/static/dashboard-next/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsxindex 6e995bce47..cca9aec831 100644--- a/saleor/static/dashboard-next/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx@@ -115,7 +115,7 @@ const OrderUnfulfilledItems = withStyles(styles, {</Table>{canFulfill && (<CardActions>- <Button variant="text" color="secondary" onClick={onFulfill}>+ <Button variant="text" color="primary" onClick={onFulfill}>{i18n.t("Fulfill", {context: "button"})}diff --git a/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsx b/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsxindex f6c990c126..4962aeefd9 100644--- a/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsx+++ b/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsx@@ -32,7 +32,7 @@ const PageListPage: React.StatelessComponent<PageListPageProps> = ({disabled={disabled}onClick={onAdd}variant="contained"- color="secondary"+ color="primary">{i18n.t("Add page")}<AddIcon />diff --git a/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx b/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsxindex 0d7f56b954..a14308c4a9 100644--- a/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx+++ b/saleor/static/dashboard-next/productTypes/components/ProductTypeAttributes/ProductTypeAttributes.tsx@@ -71,7 +71,7 @@ const ProductTypeAttributes = withStyles(styles, {}toolbar={<Button- color="secondary"+ color="primary"variant="text"onClick={() => onAttributeAdd(type)}>@@ -117,7 +117,7 @@ const ProductTypeAttributes = withStyles(styles, {<IconButtononClick={event => onAttributeDelete(attribute.id, event)}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/productTypes/components/ProductTypeListPage/ProductTypeListPage.tsx b/saleor/static/dashboard-next/productTypes/components/ProductTypeListPage/ProductTypeListPage.tsxindex 6ed202b6b5..5a63f7c47a 100644--- a/saleor/static/dashboard-next/productTypes/components/ProductTypeListPage/ProductTypeListPage.tsx+++ b/saleor/static/dashboard-next/productTypes/components/ProductTypeListPage/ProductTypeListPage.tsx@@ -31,7 +31,7 @@ const ProductTypeListPage: React.StatelessComponent<<AppHeader onBack={onBack}>{i18n.t("Configuration")}</AppHeader><PageHeader title={i18n.t("Product types")}><Button- color="secondary"+ color="primary"variant="contained"disabled={disabled}onClick={onAdd}diff --git a/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx b/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsxindex 81d9e3a0ec..f5f136f8c2 100644--- a/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx+++ b/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx@@ -179,7 +179,7 @@ const ProductImages = withStyles(styles, { name: "ProductImages" })(onClick={() => this.upload.click()}disabled={loading}variant="text"- color="secondary"+ color="primary">{i18n.t("Upload image")}</Button>diff --git a/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx b/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsxindex f7f4aedd64..51be3aab41 100644--- a/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx+++ b/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx@@ -41,7 +41,7 @@ export const ProductListCard: React.StatelessComponent<}) => (<Container><PageHeader title={i18n.t("Products")}>- <Button onClick={onAdd} color="secondary" variant="contained">+ <Button onClick={onAdd} color="primary" variant="contained">{i18n.t("Add product")} <AddIcon /></Button></PageHeader>diff --git a/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx b/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsxindex e5da9dac56..a39b4ecb6b 100644--- a/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx+++ b/saleor/static/dashboard-next/products/components/ProductVariantImages/ProductVariantImages.tsx@@ -60,7 +60,7 @@ export const ProductVariantImages = withStyles(styles, {title={i18n.t("Images")}toolbar={<Button- color="secondary"+ color="primary"variant="text"disabled={disabled}onClick={onImageAdd}diff --git a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsxindex b5cdcc0e0c..b1c008a1dd 100644--- a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx+++ b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx@@ -67,10 +67,10 @@ export const ProductVariants = withStyles(styles, { name: "ProductVariants" })(title={i18n.t("Variants")}toolbar={<>- <Button onClick={onAttributesEdit} variant="text" color="secondary">+ <Button onClick={onAttributesEdit} variant="text" color="primary">{i18n.t("Edit attributes")}</Button>- <Button onClick={onVariantAdd} variant="text" color="secondary">+ <Button onClick={onVariantAdd} variant="text" color="primary">{i18n.t("Add variant")}</Button></>diff --git a/saleor/static/dashboard-next/shipping/components/ShippingWeightUnitForm/ShippingWeightUnitForm.tsx b/saleor/static/dashboard-next/shipping/components/ShippingWeightUnitForm/ShippingWeightUnitForm.tsxindex fa13f25195..f45c2e3753 100644--- a/saleor/static/dashboard-next/shipping/components/ShippingWeightUnitForm/ShippingWeightUnitForm.tsx+++ b/saleor/static/dashboard-next/shipping/components/ShippingWeightUnitForm/ShippingWeightUnitForm.tsx@@ -59,7 +59,7 @@ const ShippingWeightUnitForm: React.StatelessComponent<</CardContent><Hr /><CardActions>- <Button color="secondary" onClick={submit}>+ <Button color="primary" onClick={submit}>{i18n.t("Save", {context: "button"})}diff --git a/saleor/static/dashboard-next/shipping/components/ShippingZoneRates/ShippingZoneRates.tsx b/saleor/static/dashboard-next/shipping/components/ShippingZoneRates/ShippingZoneRates.tsxindex d62e082ec6..f092c68217 100644--- a/saleor/static/dashboard-next/shipping/components/ShippingZoneRates/ShippingZoneRates.tsx+++ b/saleor/static/dashboard-next/shipping/components/ShippingZoneRates/ShippingZoneRates.tsx@@ -70,7 +70,7 @@ const ShippingZoneRates = withStyles(styles, { name: "ShippingZoneRates" })(: i18n.t("Weight Based Rates")}toolbar={- <Button color="secondary" onClick={onRateAdd}>+ <Button color="primary" onClick={onRateAdd}>{i18n.t("Add rate", {context: "button"})}@@ -134,7 +134,7 @@ const ShippingZoneRates = withStyles(styles, { name: "ShippingZoneRates" })(</TableCell><TableCell className={classes.alignRight}><IconButton- color="secondary"+ color="primary"disabled={disabled}onClick={event => {event.stopPropagation();@@ -146,7 +146,7 @@ const ShippingZoneRates = withStyles(styles, { name: "ShippingZoneRates" })(</TableCell><TableCell className={classes.alignRight}><IconButton- color="secondary"+ color="primary"disabled={disabled}onClick={event => {event.stopPropagation();diff --git a/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsx b/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsxindex ec580d6e60..931588bdaa 100644--- a/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsx+++ b/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsx@@ -57,7 +57,7 @@ const ShippingZonesList = withStyles(styles, { name: "ShippingZonesList" })(height="const"title={i18n.t("Shipping by zone")}toolbar={- <Button color="secondary" onClick={onAdd}>+ <Button color="primary" onClick={onAdd}>{i18n.t("Add shipping zone", {context: "button"})}@@ -108,7 +108,7 @@ const ShippingZonesList = withStyles(styles, { name: "ShippingZonesList" })(</TableCell><TableCell className={classes.alignRight}><IconButton- color="secondary"+ color="primary"disabled={disabled}onClick={event => {event.stopPropagation();diff --git a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeyDialog/SiteSettingsKeyDialog.tsx b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeyDialog/SiteSettingsKeyDialog.tsxindex 6fa72e0b0a..c32b6269d2 100644--- a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeyDialog/SiteSettingsKeyDialog.tsx+++ b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeyDialog/SiteSettingsKeyDialog.tsx@@ -86,7 +86,7 @@ const SiteSettingsKeyDialog: React.StatelessComponent<<Button onClick={onClose}>{i18n.t("Cancel", { context: "button" })}</Button>- <Button color="secondary" type="submit" variant="contained">+ <Button color="primary" type="submit" variant="contained">{i18n.t("Add authentication", {context: "button"})}diff --git a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeys/SiteSettingsKeys.tsx b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeys/SiteSettingsKeys.tsxindex c3499fa2a4..111c751a58 100644--- a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeys/SiteSettingsKeys.tsx+++ b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsKeys/SiteSettingsKeys.tsx@@ -55,7 +55,7 @@ const SiteSettingsKeys = withStyles(styles, { name: "SiteSettingsKeys" })(})}toolbar={<Button- color="secondary"+ color="primary"disabled={disabled}variant="text"onClick={onAdd}@@ -97,7 +97,7 @@ const SiteSettingsKeys = withStyles(styles, { name: "SiteSettingsKeys" })(</TableCell><TableCell className={classes.iconCell}><IconButton onClick={() => onRemove(key.name)}>- <DeleteIcon color="secondary" />+ <DeleteIcon color="primary" /></IconButton></TableCell></TableRow>diff --git a/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx b/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsxindex 7656d60499..24424b5f54 100644--- a/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx+++ b/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx@@ -30,7 +30,7 @@ const StaffListPage: React.StatelessComponent<StaffListPageProps> = ({<AppHeader onBack={onBack}>{i18n.t("Configuration")}</AppHeader><PageHeader title={i18n.t("Staff members", { context: "page title" })}><Button- color="secondary"+ color="primary"disabled={disabled}variant="contained"onClick={onAdd}diff --git a/saleor/static/dashboard-next/taxes/components/TaxConfiguration/TaxConfiguration.tsx b/saleor/static/dashboard-next/taxes/components/TaxConfiguration/TaxConfiguration.tsxindex aa5f76eac2..5cc7039700 100644--- a/saleor/static/dashboard-next/taxes/components/TaxConfiguration/TaxConfiguration.tsx+++ b/saleor/static/dashboard-next/taxes/components/TaxConfiguration/TaxConfiguration.tsx@@ -67,7 +67,7 @@ export const TaxConfiguration = withStyles(styles, {disabled={disabled}onClick={onTaxFetch}variant="flat"- color="secondary"+ color="primary">{i18n.t("Fetch taxes")}</Button>