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
31
new-lamassu-admin/src/components/buttons/Button.jsx
Normal file
31
new-lamassu-admin/src/components/buttons/Button.jsx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { makeStyles } from '@material-ui/core/styles'
|
||||
import classnames from 'classnames'
|
||||
import React, { memo } from 'react'
|
||||
|
||||
import styles from './Button.styles'
|
||||
|
||||
const useStyles = makeStyles(styles)
|
||||
|
||||
const ActionButton = memo(
|
||||
({
|
||||
size = 'lg',
|
||||
children,
|
||||
className,
|
||||
buttonClassName,
|
||||
backgroundColor,
|
||||
...props
|
||||
}) => {
|
||||
const classes = useStyles({ size, backgroundColor })
|
||||
return (
|
||||
<div className={classnames(className, classes.wrapper)}>
|
||||
<button
|
||||
className={classnames(buttonClassName, classes.button)}
|
||||
{...props}>
|
||||
{children}
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
export default ActionButton
|
||||
Loading…
Add table
Add a link
Reference in a new issue