mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
style: auto-format code
This commit is contained in:
@@ -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
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user