mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-28 23:44:19 +00:00
✏ Rename BoxHeaderOnly to BoxHeader
This commit is contained in:
parent
f0b90bdb9c
commit
21c206aeaa
4 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
import React from "react"
|
||||
import Style from "./BoxHeaderOnly.module.css"
|
||||
import Style from "./BoxHeader.module.css"
|
||||
import classNames from "classnames"
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ import classNames from "classnames"
|
|||
* @returns {JSX.Element}
|
||||
* @constructor
|
||||
*/
|
||||
export default function BoxHeaderOnly({ children, className, ...props }) {
|
||||
export default function BoxHeader({ children, className, ...props }) {
|
||||
return (
|
||||
<div className={classNames(Style.BoxHeaderOnly, className)} {...props}>
|
||||
{children}
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react"
|
||||
import Style from "./PageHome.module.css"
|
||||
import classNames from "classnames"
|
||||
import BoxHeaderOnly from "../components/BoxHeaderOnly"
|
||||
import BoxHeader from "../components/BoxHeader"
|
||||
import BoxWithHeader from "../components/BoxWithHeader"
|
||||
import Checkbox from "../components/Checkbox"
|
||||
import InputWithIcon from "../components/InputWithIcon"
|
||||
|
@ -15,9 +15,9 @@ import Label from "../components/Label"
|
|||
export default function PageHome({ children, className, ...props }) {
|
||||
return (
|
||||
<div className={classNames(Style.PageHome, className)} {...props}>
|
||||
<BoxHeaderOnly className={Style.Header}>
|
||||
<BoxHeader className={Style.Header}>
|
||||
Create a new repository
|
||||
</BoxHeaderOnly>
|
||||
</BoxHeader>
|
||||
<BoxWithHeader className={Style.SearchByZone} header={
|
||||
<span><Checkbox/> Search by zone</span>
|
||||
}>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react"
|
||||
import Style from "./PageSettings.module.css"
|
||||
import classNames from "classnames"
|
||||
import BoxHeaderOnly from "../components/BoxHeaderOnly"
|
||||
import BoxHeader from "../components/BoxHeader"
|
||||
import BoxWithHeader from "../components/BoxWithHeader"
|
||||
import Select from "../components/Select"
|
||||
import SelectTheme from "../components/SelectTheme"
|
||||
|
@ -10,12 +10,12 @@ import SelectTheme from "../components/SelectTheme"
|
|||
export default function PageSettings({ children, className, ...props }) {
|
||||
return (
|
||||
<div className={classNames(Style.PageSettings, className)} {...props}>
|
||||
<BoxHeaderOnly>
|
||||
<BoxHeader>
|
||||
You are currently logged in as:
|
||||
</BoxHeaderOnly>
|
||||
<BoxHeaderOnly>
|
||||
</BoxHeader>
|
||||
<BoxHeader>
|
||||
Switch theme: <SelectTheme/>
|
||||
</BoxHeaderOnly>
|
||||
</BoxHeader>
|
||||
<BoxWithHeader header={"Change your email address"}>
|
||||
|
||||
</BoxWithHeader>
|
||||
|
|
Loading…
Reference in a new issue