Account settings page.
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
import React, { Children } from 'react';
|
||||
import React from 'react';
|
||||
import styles from './PageHeader.module.css';
|
||||
|
||||
export default function PageHeader({ children }) {
|
||||
const [firstChild, ...otherChildren] = Children.toArray(children);
|
||||
return (
|
||||
<div className={styles.header}>
|
||||
<div className={styles.title}> {firstChild}</div>
|
||||
{otherChildren && <div>{otherChildren}</div>}
|
||||
</div>
|
||||
);
|
||||
return <div className={styles.header}>{children}</div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user