From a38409e2d0c43853642980eb71c92228062f17f0 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Wed, 6 Jan 2021 20:51:39 +0100 Subject: [PATCH] Add edition breadcrumb --- src/app.tsx | 11 +- src/management/edition/manage.tsx | 131 +++++++++++------- src/management/edition/report/fields/list.tsx | 5 +- src/management/edition/settings.tsx | 5 +- src/management/routing.tsx | 9 +- src/routing.tsx | 23 ++- 6 files changed, 111 insertions(+), 73 deletions(-) diff --git a/src/app.tsx b/src/app.tsx index 47d9ad6..b6974b6 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,6 +1,6 @@ import React, { HTMLProps, useEffect } from 'react'; import { Link, Route, Switch } from "react-router-dom" -import { processMiddlewares, route, routes } from "@/routing"; +import { processMiddlewares, route, Routes, routes } from "@/routing"; import { useSelector } from "react-redux"; import { AppState } from "@/state/reducer"; import { Trans, useTranslation } from "react-i18next"; @@ -97,14 +97,7 @@ function App() {
- { - { routes.map(({ name, content, middlewares = [], ...route }) => - { - const Next = () => processMiddlewares([ ...middlewares, content ]) - return - } } /> - ) } - } + !route.tags || route.tags.length == 0) }/>