1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-24 22:14:18 +00:00

Create PageShare

This commit is contained in:
Steffo 2021-05-23 16:32:28 +02:00
parent e1e0218e71
commit 6048de040f
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 25 additions and 0 deletions

View file

@ -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 (
<Switch {...props}>
<Route path={"/repositories/:id/share"} exact={true}>
<PageShare/>
</Route>
<Route path={"/repositories/:id/edit"} exact={true}>
<PageEdit/>
</Route>

View file

@ -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 (
<div className={classNames(Style.PageShare, className)} {...props}>
<BoxHeader className={Style.Header}>
{strings.repoShare}
</BoxHeader>
</div>
)
}

View file

@ -0,0 +1,3 @@
.PageShare {
}