Apply prettier over all files

This commit is contained in:
Luis Alvarez
2020-10-01 20:40:40 -05:00
parent 2314ad760a
commit 0ef6449aff
72 changed files with 648 additions and 652 deletions

View File

@@ -1,25 +1,25 @@
import cn from "classnames";
import { FunctionComponent } from "react";
import s from "./Container.module.css";
import cn from 'classnames'
import { FunctionComponent } from 'react'
import s from './Container.module.css'
interface Props {
className?: string;
children?: any;
el?: HTMLElement;
className?: string
children?: any
el?: HTMLElement
}
const Container: FunctionComponent<Props> = ({
children,
className,
el = "div",
el = 'div',
}) => {
const rootClassName = cn(s.root, className);
const rootClassName = cn(s.root, className)
let Component: React.ComponentType<React.HTMLAttributes<
HTMLDivElement
>> = el as any;
>> = el as any
return <Component className={rootClassName}>{children}</Component>;
};
return <Component className={rootClassName}>{children}</Component>
}
export default Container;
export default Container