style: autoformat/lint the codebase

This commit is contained in:
Jean-Philippe Sirois
2019-10-07 07:21:54 -04:00
parent 153295f543
commit 583b7ea61a
14 changed files with 134 additions and 134 deletions
+1 -4
View File
@@ -1,9 +1,6 @@
import React, { FC } from "react"
import * as SC from "./styles"
export const Container: FC = ({
children,
...restProps
}) => {
export const Container: FC = ({ children, ...restProps }) => {
return <SC.ContainerWrapper {...restProps}>{children}</SC.ContainerWrapper>
}
+1 -4
View File
@@ -14,10 +14,7 @@ interface IMarkdownProps {
This component is used as a wrapper around Markdown generated content,
mainly to provide styles to the html generated.
*/
export const Markdown: FC<IMarkdownProps> = ({
content,
...restProps
}) => {
export const Markdown: FC<IMarkdownProps> = ({ content, ...restProps }) => {
useEffect(() => {
Prism.highlightAll()
}, [])
+1 -4
View File
@@ -5,10 +5,7 @@ interface IResourcesLinkProps {
to: string
}
export const ResourcesLink: FC<IResourcesLinkProps> = ({
children,
to,
}) => {
export const ResourcesLink: FC<IResourcesLinkProps> = ({ children, to }) => {
if (!to.match(/^(https?:\/\/)/)) {
return (
<SC.ResourcesLinkInternal to={to}>{children}</SC.ResourcesLinkInternal>
+1 -1
View File
@@ -51,7 +51,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 tree = useBuildTree(resources)
@@ -2,7 +2,6 @@ import { graphql, Link, useStaticQuery } from "gatsby"
import React, { FC, HTMLAttributes, memo, useState } from "react"
import Scrollbar from "react-perfect-scrollbar"
import "react-perfect-scrollbar/dist/css/styles.css"
import { useLockBodyScroll } from "../../hooks/useLockBodyScroll"
import TriangleDown from "../../icons/triangle-down.svg"
import Banner from "../../images/tph-banner.svg"
import { IAllResourcesQuery, IFileOrFolder, IFolder } from "../../types"