mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Apply prettier over all files
This commit is contained in:
@@ -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
|
||||
|
@@ -1 +1 @@
|
||||
export { default } from "./Container";
|
||||
export { default } from './Container'
|
||||
|
Reference in New Issue
Block a user