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(