style: auto-format code

This commit is contained in:
Jean-Philippe Sirois
2019-12-01 18:51:27 -05:00
parent d6da413dec
commit 1195215117
2 changed files with 4 additions and 8 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
) )
} }
export const Sidebar: FC< export const Sidebar: FC<PropsWithChildren<
PropsWithChildren<HTMLAttributes<HTMLDivElement>> HTMLAttributes<HTMLDivElement>
> = props => { >> = props => {
const { children, ...restProps } = props const { children, ...restProps } = props
return ( return (
+1 -5
View File
@@ -23,11 +23,7 @@ function dashToSpace(str: string): string {
} }
export function humanize(str: string): string { export function humanize(str: string): string {
return pipe( return pipe(dashToSpace, specificWordsToUpper, removeDotMD)(str)
dashToSpace,
specificWordsToUpper,
removeDotMD
)(str)
} }
export function traversePaths( export function traversePaths(