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:
parent
e1e0218e71
commit
6048de040f
3 changed files with 25 additions and 0 deletions
|
@ -9,11 +9,15 @@ import PageRoot from "./routes/PageRoot"
|
||||||
import PageEdit from "./routes/PageEdit"
|
import PageEdit from "./routes/PageEdit"
|
||||||
import PageUsers from "./routes/PageUsers"
|
import PageUsers from "./routes/PageUsers"
|
||||||
import PageRepository from "./routes/PageRepository"
|
import PageRepository from "./routes/PageRepository"
|
||||||
|
import PageShare from "./routes/PageShare"
|
||||||
|
|
||||||
|
|
||||||
export default function PageSwitcher({ ...props }) {
|
export default function PageSwitcher({ ...props }) {
|
||||||
return (
|
return (
|
||||||
<Switch {...props}>
|
<Switch {...props}>
|
||||||
|
<Route path={"/repositories/:id/share"} exact={true}>
|
||||||
|
<PageShare/>
|
||||||
|
</Route>
|
||||||
<Route path={"/repositories/:id/edit"} exact={true}>
|
<Route path={"/repositories/:id/edit"} exact={true}>
|
||||||
<PageEdit/>
|
<PageEdit/>
|
||||||
</Route>
|
</Route>
|
||||||
|
|
18
nest_frontend/routes/PageShare.js
Normal file
18
nest_frontend/routes/PageShare.js
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
3
nest_frontend/routes/PageShare.module.css
Normal file
3
nest_frontend/routes/PageShare.module.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.PageShare {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue