fix: simplify layout by using TitleSection
This commit is contained in:
parent
bba2427de6
commit
0adecf02f0
3 changed files with 17 additions and 17 deletions
|
|
@ -8,7 +8,7 @@ import styles from './TitleSection.styles'
|
|||
|
||||
const useStyles = makeStyles(styles)
|
||||
|
||||
const TitleSection = ({ title, error }) => {
|
||||
const TitleSection = ({ title, error, labels }) => {
|
||||
const classes = useStyles()
|
||||
return (
|
||||
<div className={classes.titleWrapper}>
|
||||
|
|
@ -18,6 +18,7 @@ const TitleSection = ({ title, error }) => {
|
|||
<ErrorMessage className={classes.error}>Failed to save</ErrorMessage>
|
||||
)}
|
||||
</div>
|
||||
<div className={classes.headerLabels}>{labels}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue