Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
git rebase commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pvpg committed Mar 1, 2021
2 parents 0216715 + 1419872 commit 11660db
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
}
1 change: 1 addition & 0 deletions src/components/slices/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-named-as-default */
import CTABanner from './CTABanner'
import FeaturedItems from './FeaturedItems'
import NumberedItems from './NumberedItems'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Link, graphql } from 'gatsby'
import { Helmet } from 'react-helmet'
import { withPreview } from 'gatsby-source-prismic'
import Layout from '../components/layouts'
import Layout from '../components/layouts/index'

const BlogTemplate = ({ data }) => {
if (!data) return null
Expand Down
3 changes: 2 additions & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { withPreview } from 'gatsby-source-prismic'
import {
CTABanner, FeaturedItems, NumberedItems, Separator, TextBlock,
} from '../components/slices'
import Layout from '../components/layouts'
import Layout from '../components/layouts/index'

const HomeTemplate = ({ data }) => {
if (!data) return null
Expand Down Expand Up @@ -153,6 +153,7 @@ export const query = graphql`
`

const RenderSlices = ({ slices }) => (slices.map((slice, index) => {
// eslint-disable-next-line consistent-return
const res = (() => {
switch (slice.slice_type) {
case 'cta_banner': return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/products.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link, graphql } from 'gatsby'
import { RichText } from 'prismic-reactjs'
import { Helmet } from 'react-helmet'
import { withPreview } from 'gatsby-source-prismic'
import Layout from '../components/layouts'
import Layout from '../components/layouts/index'

const ProductsTemplate = ({ data }) => {
if (!data) return null
Expand Down
2 changes: 1 addition & 1 deletion src/templates/blogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RichText } from 'prismic-reactjs'
import { Helmet } from 'react-helmet'
import { graphql } from 'gatsby'
import { withPreview } from 'gatsby-source-prismic'
import Layout from '../components/layouts'
import Layout from '../components/layouts/index'

export const BlogPostTemplate = ({ data }) => {
if (!data) return null
Expand Down
2 changes: 1 addition & 1 deletion src/templates/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RichText } from 'prismic-reactjs'
import { Helmet } from 'react-helmet'
import { graphql, Link } from 'gatsby'
import { withPreview } from 'gatsby-source-prismic'
import Layout from '../components/layouts'
import Layout from '../components/layouts/index'

const ProductTemplate = ({ data }) => {
if (!data) return null
Expand Down

0 comments on commit 11660db

Please sign in to comment.