From 6048de040fe07dc9169d76453c41bc6f5d6ad42b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 23 May 2021 16:32:28 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Create=20PageShare?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest_frontend/PageSwitcher.js | 4 ++++ nest_frontend/routes/PageShare.js | 18 ++++++++++++++++++ nest_frontend/routes/PageShare.module.css | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 nest_frontend/routes/PageShare.js create mode 100644 nest_frontend/routes/PageShare.module.css diff --git a/nest_frontend/PageSwitcher.js b/nest_frontend/PageSwitcher.js index 9cfe1ec..8eec03a 100644 --- a/nest_frontend/PageSwitcher.js +++ b/nest_frontend/PageSwitcher.js @@ -9,11 +9,15 @@ import PageRoot from "./routes/PageRoot" import PageEdit from "./routes/PageEdit" import PageUsers from "./routes/PageUsers" import PageRepository from "./routes/PageRepository" +import PageShare from "./routes/PageShare" export default function PageSwitcher({ ...props }) { return ( + + + diff --git a/nest_frontend/routes/PageShare.js b/nest_frontend/routes/PageShare.js new file mode 100644 index 0000000..acbab77 --- /dev/null +++ b/nest_frontend/routes/PageShare.js @@ -0,0 +1,18 @@ +import React, { useContext } from "react" +import classNames from "classnames" +import BoxHeader from "../components/base/BoxHeader" +import ContextLanguage from "../contexts/ContextLanguage" +import Style from "./PageShare.module.css" + + +export default function PageShare({ className, ...props }) { + const { strings } = useContext(ContextLanguage) + + return ( +
+ + {strings.repoShare} + +
+ ) +} diff --git a/nest_frontend/routes/PageShare.module.css b/nest_frontend/routes/PageShare.module.css new file mode 100644 index 0000000..e385935 --- /dev/null +++ b/nest_frontend/routes/PageShare.module.css @@ -0,0 +1,3 @@ +.PageShare { + +}