Merge branch 'master' of github.com:okbel/e-comm-example

This commit is contained in:
Belen Curcio
2020-10-23 11:48:14 -03:00
22 changed files with 227 additions and 103 deletions

View File

@@ -5,10 +5,11 @@ interface Props {
className?: string
children?: any
el?: HTMLElement
clean?: boolean
}
const Container: FC<Props> = ({ children, className, el = 'div' }) => {
const rootClassName = cn('mx-auto max-w-8xl px-12', className)
const Container: FC<Props> = ({ children, className, el = 'div', clean }) => {
const rootClassName = cn(className, { 'mx-auto max-w-8xl px-12': !clean })
let Component: React.ComponentType<React.HTMLAttributes<
HTMLDivElement