mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 23:43:37 +02:00
style: fix lint issues
This commit is contained in:
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user