style: fix lint issues

This commit is contained in:
Jean-Philippe Sirois
2019-08-18 23:58:11 -04:00
parent 71557fa75b
commit e7f1f0728a
23 changed files with 55 additions and 51 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
import React, { useState, PropsWithChildren } from "react"
import { useStaticQuery, graphql, Link } from "gatsby"
import useBuildTree from "./useBuildTree"
import useSidebar from "./../../hooks/useSidebar"
import Banner from "../../images/tph-banner.svg"
import { graphql, Link, useStaticQuery } from "gatsby"
import React, { PropsWithChildren, useState } from "react"
import TriangleDown from "../../icons/triangle-down.svg"
import Banner from "../../images/tph-banner.svg"
import useSidebar from "./../../hooks/useSidebar"
import * as SC from "./styles"
import useBuildTree from "./useBuildTree"
export interface IFile {
title: string
+1 -1
View File
@@ -1,5 +1,5 @@
import styled from "styled-components"
import { Link } from "gatsby"
import styled from "styled-components"
import ChevronUp from "../../icons/chevron-up.svg"
export const ResourcesSidebarWrapper = styled.div`
@@ -1,13 +1,13 @@
import partition from "ramda/es/partition"
import chain from "ramda/es/chain"
import partition from "ramda/es/partition"
import { traversePaths } from "../../utils"
import {
IFileOrFolder,
IFile,
IFolder,
IAllResourcesQuery,
IFile,
IFileOrFolder,
IFileQuery,
IFolder,
} from "./index"
function generateFolder({
@@ -44,7 +44,7 @@ function generateFile({
}
function join([head, ...tail]: IFileOrFolder[]): IFileOrFolder[] {
if (!head) return []
if (!head) { return [] }
const [similarFs, remaining] = partition(
obj => obj.title === head.title && obj.type === head.type,