1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00

✏ Rename BoxHeaderOnly to BoxHeader

This commit is contained in:
Stefano Pigozzi 2021-04-23 02:24:38 +02:00
parent f0b90bdb9c
commit 21c206aeaa
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
4 changed files with 10 additions and 10 deletions

View file

@ -1,5 +1,5 @@
import React from "react" import React from "react"
import Style from "./BoxHeaderOnly.module.css" import Style from "./BoxHeader.module.css"
import classNames from "classnames" import classNames from "classnames"
@ -12,7 +12,7 @@ import classNames from "classnames"
* @returns {JSX.Element} * @returns {JSX.Element}
* @constructor * @constructor
*/ */
export default function BoxHeaderOnly({ children, className, ...props }) { export default function BoxHeader({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.BoxHeaderOnly, className)} {...props}> <div className={classNames(Style.BoxHeaderOnly, className)} {...props}>
{children} {children}

View file

@ -1,7 +1,7 @@
import React from "react" import React from "react"
import Style from "./PageHome.module.css" import Style from "./PageHome.module.css"
import classNames from "classnames" import classNames from "classnames"
import BoxHeaderOnly from "../components/BoxHeaderOnly" import BoxHeader from "../components/BoxHeader"
import BoxWithHeader from "../components/BoxWithHeader" import BoxWithHeader from "../components/BoxWithHeader"
import Checkbox from "../components/Checkbox" import Checkbox from "../components/Checkbox"
import InputWithIcon from "../components/InputWithIcon" import InputWithIcon from "../components/InputWithIcon"
@ -15,9 +15,9 @@ import Label from "../components/Label"
export default function PageHome({ children, className, ...props }) { export default function PageHome({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.PageHome, className)} {...props}> <div className={classNames(Style.PageHome, className)} {...props}>
<BoxHeaderOnly className={Style.Header}> <BoxHeader className={Style.Header}>
Create a new repository Create a new repository
</BoxHeaderOnly> </BoxHeader>
<BoxWithHeader className={Style.SearchByZone} header={ <BoxWithHeader className={Style.SearchByZone} header={
<span><Checkbox/> Search by zone</span> <span><Checkbox/> Search by zone</span>
}> }>

View file

@ -1,7 +1,7 @@
import React from "react" import React from "react"
import Style from "./PageSettings.module.css" import Style from "./PageSettings.module.css"
import classNames from "classnames" import classNames from "classnames"
import BoxHeaderOnly from "../components/BoxHeaderOnly" import BoxHeader from "../components/BoxHeader"
import BoxWithHeader from "../components/BoxWithHeader" import BoxWithHeader from "../components/BoxWithHeader"
import Select from "../components/Select" import Select from "../components/Select"
import SelectTheme from "../components/SelectTheme" import SelectTheme from "../components/SelectTheme"
@ -10,12 +10,12 @@ import SelectTheme from "../components/SelectTheme"
export default function PageSettings({ children, className, ...props }) { export default function PageSettings({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.PageSettings, className)} {...props}> <div className={classNames(Style.PageSettings, className)} {...props}>
<BoxHeaderOnly> <BoxHeader>
You are currently logged in as: You are currently logged in as:
</BoxHeaderOnly> </BoxHeader>
<BoxHeaderOnly> <BoxHeader>
Switch theme: <SelectTheme/> Switch theme: <SelectTheme/>
</BoxHeaderOnly> </BoxHeader>
<BoxWithHeader header={"Change your email address"}> <BoxWithHeader header={"Change your email address"}>
</BoxWithHeader> </BoxWithHeader>