chore: use proper name convention for build tools
This commit is contained in:
parent
62f39f3561
commit
d646aee24b
283 changed files with 353 additions and 422 deletions
25
new-lamassu-admin/src/components/layout/Section.jsx
Normal file
25
new-lamassu-admin/src/components/layout/Section.jsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { makeStyles } from '@material-ui/core'
|
||||
import React from 'react'
|
||||
import ErrorMessage from 'src/components/ErrorMessage'
|
||||
import Subtitle from 'src/components/Subtitle'
|
||||
|
||||
import styles from './Section.styles'
|
||||
|
||||
const useStyles = makeStyles(styles)
|
||||
|
||||
const Section = ({ error, children, title }) => {
|
||||
const classes = useStyles()
|
||||
return (
|
||||
<div className={classes.section}>
|
||||
{(title || error) && (
|
||||
<div className={classes.sectionHeader}>
|
||||
<Subtitle className={classes.sectionTitle}>{title}</Subtitle>
|
||||
{error && <ErrorMessage>Failed to save changes</ErrorMessage>}
|
||||
</div>
|
||||
)}
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Section
|
||||
Loading…
Add table
Add a link
Reference in a new issue