1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/nest_frontend/routes/PageSettings.js

36 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-05-18 16:50:02 +00:00
import React, { useContext } from "react"
2021-04-21 16:21:30 +00:00
import Style from "./PageSettings.module.css"
import classNames from "classnames"
2021-04-29 14:58:31 +00:00
import BoxHeader from "../components/base/BoxHeader"
import BoxFull from "../components/base/BoxFull"
import SelectTheme from "../components/interactive/SelectTheme"
import BoxLoggedIn from "../components/interactive/BoxLoggedIn"
2021-05-17 14:32:42 +00:00
import SelectLanguage from "../components/interactive/SelectLanguage"
2021-05-18 16:50:02 +00:00
import ContextLanguage from "../contexts/ContextLanguage"
2021-04-21 16:21:30 +00:00
export default function PageSettings({ children, className, ...props }) {
2021-05-18 16:50:02 +00:00
const { strings } = useContext(ContextLanguage)
2021-04-21 16:21:30 +00:00
return (
<div className={classNames(Style.PageSettings, className)} {...props}>
<BoxLoggedIn/>
2021-04-23 00:24:38 +00:00
<BoxHeader>
2021-05-18 16:50:02 +00:00
{strings.switchTheme}: <SelectTheme/>
2021-04-23 00:24:38 +00:00
</BoxHeader>
2021-05-17 14:32:42 +00:00
<BoxHeader>
2021-05-18 16:50:02 +00:00
{strings.changeLang}: <SelectLanguage/>
2021-05-17 14:32:42 +00:00
</BoxHeader>
2021-05-18 16:50:02 +00:00
<BoxFull header={strings.alertSettings}>
{strings.notImplemented}
</BoxFull>
2021-05-18 16:50:02 +00:00
<BoxFull header={strings.changeEmail}>
{strings.notImplemented}
2021-04-23 00:26:16 +00:00
</BoxFull>
2021-05-18 16:50:02 +00:00
<BoxFull header={strings.changePasswd}>
{strings.notImplemented}
2021-04-23 00:26:16 +00:00
</BoxFull>
2021-04-21 16:21:30 +00:00
</div>
)
}