mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 16:06:13 +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 => {
|
export const ResourcesList: FC<HTMLAttributes<HTMLDivElement>> = props => {
|
||||||
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
||||||
const tree = useBuildTree(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 (
|
return (
|
||||||
<SC.ResourcesListWrapper {...props}>
|
<SC.ResourcesListWrapper {...props}>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
|||||||
export const ResourcesSidebar: FC<HTMLAttributes<HTMLDivElement>> = props => {
|
export const ResourcesSidebar: FC<HTMLAttributes<HTMLDivElement>> = props => {
|
||||||
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
const resources = useStaticQuery<IAllResourcesQuery>(ALL_RESOURCES)
|
||||||
const tree = useBuildTree(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 (
|
return (
|
||||||
<SC.ResourcesSidebarWrapper {...props}>
|
<SC.ResourcesSidebarWrapper {...props}>
|
||||||
|
|||||||
Reference in New Issue
Block a user