refact: prefer function over lambdas

This commit is contained in:
Jean-Philippe Sirois
2019-07-27 17:54:51 -04:00
parent f7f66a3071
commit 90fb9b1888
13 changed files with 51 additions and 45 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
import React, { PropsWithChildren } from "react"
import * as SC from "./styles"
const Container = ({
function Container({
children,
...restProps
}: PropsWithChildren<{}>): JSX.Element => (
<SC.ContainerWrapper {...restProps}>{children}</SC.ContainerWrapper>
)
}: PropsWithChildren<{}>): JSX.Element {
return <SC.ContainerWrapper {...restProps}>{children}</SC.ContainerWrapper>
}
export default Container