mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
style: autoformat/lint the codebase
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}, [])
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user