Merge pull request #159 from the-programmers-hangout/style-format-codebase

style: format the codebase with Prettier
This commit is contained in:
Jean-Philippe Sirois
2019-11-08 14:27:24 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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}>
+1 -1
View File
@@ -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}>