From: Daniel Karbach Date: Sun, 20 Aug 2023 22:07:46 +0000 (+0200) Subject: fix tech basepath X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=5a0be9cded90d70dd16a56d30b4804dbd830aa0f;p=alttp.git fix tech basepath --- diff --git a/resources/js/components/app/Routes.js b/resources/js/components/app/Routes.js index 396b2a7..5f2ed26 100644 --- a/resources/js/components/app/Routes.js +++ b/resources/js/components/app/Routes.js @@ -22,7 +22,7 @@ const AppRoutes = ({ doLogout }) => /> } + element={} /> /> } + element={} /> } /> @@ -47,7 +47,7 @@ const AppRoutes = ({ doLogout }) => /> } + element={} /> /> } + element={} /> } /> /> } + element={} /> } /> } /> diff --git a/resources/js/components/pages/Technique.js b/resources/js/components/pages/Technique.js index 32acd28..30eed5b 100644 --- a/resources/js/components/pages/Technique.js +++ b/resources/js/components/pages/Technique.js @@ -20,7 +20,7 @@ import { getLanguages, getMatchedLocale, getTranslation } from '../../helpers/Te import { useUser } from '../../helpers/UserContext'; import i18n from '../../i18n'; -const Technique = ({ type }) => { +const Technique = ({ basepath, type }) => { const params = useParams(); const { name } = params; const user = useUser(); @@ -91,7 +91,7 @@ const Technique = ({ type }) => { @@ -107,6 +107,7 @@ const Technique = ({ type }) => { }; Technique.propTypes = { + basepath: PropTypes.string, type: PropTypes.string, };