mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
Merge pull request #159 from the-programmers-hangout/style-format-codebase
style: format the codebase with Prettier
This commit is contained in:
@@ -54,7 +54,7 @@ const Language = memo(({ item }: { item: IFolder; index: number }) => {
|
||||
export const ResourcesList: FC<HTMLAttributes<HTMLDivElement>> = props => {
|
||||
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
||||
const tree = useBuildTree(resources)
|
||||
const sortedTree = tree.sort((a, b) => a.title.localeCompare(b.title));
|
||||
const sortedTree = tree.sort((a, b) => a.title.localeCompare(b.title))
|
||||
|
||||
return (
|
||||
<SC.ResourcesListWrapper {...props}>
|
||||
|
||||
@@ -98,7 +98,7 @@ const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
||||
export const ResourcesSidebar: FC<HTMLAttributes<HTMLDivElement>> = props => {
|
||||
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
||||
const tree = useBuildTree(resources)
|
||||
const sortedTree = tree.sort((a, b) => a.title.localeCompare(b.title));
|
||||
const sortedTree = tree.sort((a, b) => a.title.localeCompare(b.title))
|
||||
|
||||
return (
|
||||
<SC.ResourcesSidebarWrapper {...props}>
|
||||
|
||||
Reference in New Issue
Block a user