From 1195215117e21744ff68beb704d42edb73ed5e59 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Sun, 1 Dec 2019 18:51:27 -0500 Subject: [PATCH] style: auto-format code --- src/components/Sidebar/index.tsx | 6 +++--- src/utils/index.ts | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx index 162b52e..9041d7e 100644 --- a/src/components/Sidebar/index.tsx +++ b/src/components/Sidebar/index.tsx @@ -18,9 +18,9 @@ const MenuItem: FC = ({ children, to }) => { ) } -export const Sidebar: FC< - PropsWithChildren> -> = props => { +export const Sidebar: FC +>> = props => { const { children, ...restProps } = props return ( diff --git a/src/utils/index.ts b/src/utils/index.ts index 87e6166..c98ea99 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -23,11 +23,7 @@ function dashToSpace(str: string): string { } export function humanize(str: string): string { - return pipe( - dashToSpace, - specificWordsToUpper, - removeDotMD - )(str) + return pipe(dashToSpace, specificWordsToUpper, removeDotMD)(str) } export function traversePaths(