Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add configuration section to router
dominik-zeglen449275fa7868
diff --git a/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx b/saleor/static/dashboard-next/configuration/ConfigurationPage.tsxindex 954a5833b3..7a38f52b2c 100644--- a/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx+++ b/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx@@ -72,6 +72,7 @@ export const ConfigurationPage = decorate<ConfigurationPageProps>(className={menuItem.disabled ? classes.cardDisabled : classes.card}+ onClick={() => onSectionClick(menuItem.url)}><CardContent className={classes.cardContent}><Icon className={classes.icon} />diff --git a/saleor/static/dashboard-next/configuration/index.tsx b/saleor/static/dashboard-next/configuration/index.tsxindex 916a5d96e9..0689766cba 100644--- a/saleor/static/dashboard-next/configuration/index.tsx+++ b/saleor/static/dashboard-next/configuration/index.tsx@@ -1,6 +1,7 @@import * as React from "react";-import i18n from "../i18n";+import Navigator from "../components/Navigator";+import i18n from "../i18n";import AccountCircle from "../icons/AccountCircle";import Ballot from "../icons/Ballot";import Folder from "../icons/Folder";@@ -9,6 +10,7 @@ import Monetization from "../icons/Monetization";import Navigation from "../icons/Navigation";import Pages from "../icons/Pages";import StoreMall from "../icons/StoreMall";+import ConfigurationPage from "./ConfigurationPage";export const configurationMenu = [{@@ -68,3 +70,12 @@ export const configurationMenu = [url: "/pages/"}];++export const ConfigurationSection: React.StatelessComponent = () => (+ <Navigator>+ {navigate => (+ <ConfigurationPage menu={configurationMenu} onSectionClick={navigate} />+ )}+ </Navigator>+);+export default ConfigurationSection;diff --git a/saleor/static/dashboard-next/index.tsx b/saleor/static/dashboard-next/index.tsxindex 3c375a73ac..1080599567 100644--- a/saleor/static/dashboard-next/index.tsx+++ b/saleor/static/dashboard-next/index.tsx@@ -18,6 +18,7 @@ import CategorySection from "./categories";import { DateProvider } from "./components/DateFormatter";import { LocaleProvider } from "./components/Locale";import { MessageManager } from "./components/messages";+import { ConfigurationSection } from "./configuration";import "./i18n";import PageSection from "./pages";import ProductSection from "./products";@@ -78,6 +79,11 @@ render(<Route path="/categories" component={CategorySection} /><Route path="/pages" component={PageSection} /><Route path="/products" component={ProductSection} />+ <Route+ exact+ path="/configuration"+ component={ConfigurationSection}+ /></Switch></AppRoot>) : (