style: auto-format code

This commit is contained in:
Jean-Philippe Sirois
2019-09-14 19:54:25 -04:00
parent 79e19c974f
commit d933820454
7 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -6,4 +6,4 @@
// You can delete this file if you're not using it
require('prismjs/themes/prism-tomorrow.css');
require("prismjs/themes/prism-tomorrow.css")
+8 -7
View File
@@ -13,15 +13,16 @@ export const SidebarContext = React.createContext<ISidebarContextInterface | nul
null
)
export function SidebarProvider({
children,
}: ISidebarProviderProps) {
export function SidebarProvider({ children }: ISidebarProviderProps) {
const [current, setCurrent] = useState(0)
const memoizedContextValue = useMemo(() => ({
current,
setCurrent,
}), [current, setCurrent])
const memoizedContextValue = useMemo(
() => ({
current,
setCurrent,
}),
[current, setCurrent]
)
return (
<SidebarContext.Provider value={memoizedContextValue}>
+1 -2
View File
@@ -1,4 +1,3 @@
import styled from "styled-components"
export const ContainerWrapper = styled.div`
`
export const ContainerWrapper = styled.div``
-1
View File
@@ -11,7 +11,6 @@ export function Footer() {
{` `}
<a href="https://www.gatsbyjs.org">Gatsby</a>
</p>
</Container>
</SC.FooterWrapper>
)
+1 -1
View File
@@ -1,7 +1,7 @@
import { Link } from "gatsby"
import { darken, lighten } from "polished"
import styled, { css } from "styled-components"
import { fontFamily, modularScale } from "../../design/typography"
import { darken, lighten } from "polished"
export const ResourceHeaderWrapper = styled.div`
border-bottom: 1px solid #dbdbdb;
+1 -3
View File
@@ -33,9 +33,7 @@ export function ResourcesLayout({ children }: PropsWithChildren<{}>) {
<MobileHeader openMenu={openMenu} />
<ResourcesSidebar className={activeMobileMenu ? "is-open" : ""} />
<SC.MainContent>
<SC.Container>
{children}
</SC.Container>
<SC.Container>{children}</SC.Container>
</SC.MainContent>
</SC.Main>
<SC.Overlay
@@ -44,7 +44,9 @@ 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,