mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-28 23:44:19 +00:00
39 lines
1.3 KiB
JavaScript
39 lines
1.3 KiB
JavaScript
import React, { useContext } from "react"
|
|
import BoxFull from "../components/base/BoxFull"
|
|
import ContextLanguage from "../contexts/ContextLanguage"
|
|
import BoxHeader from "../components/base/BoxHeader"
|
|
import { useHistory, useParams } from "react-router"
|
|
import { faBell, faPlus } from "@fortawesome/free-solid-svg-icons"
|
|
import PageWithHeader from "../components/base/layout/PageWithHeader"
|
|
import ButtonHeader from "../components/base/ButtonHeader"
|
|
import makeIcon from "../utils/makeIcon"
|
|
|
|
|
|
export default function PageRepositoryAlerts() {
|
|
const { strings } = useContext(ContextLanguage)
|
|
const { id } = useParams()
|
|
const history = useHistory()
|
|
|
|
return (
|
|
<PageWithHeader
|
|
header={
|
|
<BoxHeader>
|
|
{makeIcon(faBell)} {strings.alerts}
|
|
</BoxHeader>
|
|
}
|
|
buttons={
|
|
<ButtonHeader
|
|
icon={faPlus}
|
|
color={"Green"}
|
|
onClick={() => history.push(`/repositories/${id}/alerts/create`)}
|
|
>
|
|
{strings.alertCreate}
|
|
</ButtonHeader>
|
|
}
|
|
>
|
|
<BoxFull header={strings.alertTitle}>
|
|
{strings.notImplemented}
|
|
</BoxFull>
|
|
</PageWithHeader>
|
|
)
|
|
}
|