Skip to content

Commit

Permalink
Disable instagram featurette temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
plahteenlahti committed Sep 28, 2020
1 parent 35d7222 commit 32d09a0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
86 changes: 43 additions & 43 deletions src/components/Footer/InstagramFeaturette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,49 @@ import { device } from "../Primitives"
import { useTranslation } from "gatsby-plugin-react-i18next"

const InstagramFeaturette: FC = () => {
const {
allInstaNode: { nodes: posts },
} = useStaticQuery(graphql`
query InstagramQuery {
allInstaNode(sort: { order: DESC, fields: timestamp }, limit: 10) {
nodes {
id
username
timestamp
preview
}
}
}
`) as {
allInstaNode: {
nodes: [
{
likes: number
comments: number
caption: string
username: string
timestamp: number
preview: string
id: string
}
]
}
}
const { t } = useTranslation()
return (
<Container>
<H3>{t("ABOUT.INSTAGRAM")}</H3>
<Posts>
{posts.map((post) => (
<Post href={`https://instagram.com/${post.username}`} key={post.id}>
<Image src={post.preview} />
<BottomRow>@{post.username}</BottomRow>
{/* <Caption>{post.caption}</Caption> */}
</Post>
))}
</Posts>
</Container>
)
// const {
// allInstaNode: { nodes: posts },
// } = useStaticQuery(graphql`
// query InstagramQuery {
// allInstaNode(sort: { order: DESC, fields: timestamp }, limit: 10) {
// nodes {
// id
// username
// timestamp
// preview
// }
// }
// }
// `) as {
// allInstaNode: {
// nodes: [
// {
// likes: number
// comments: number
// caption: string
// username: string
// timestamp: number
// preview: string
// id: string
// }
// ]
// }
// }
// const { t } = useTranslation()
// return (
// <Container>
// <H3>{t("ABOUT.INSTAGRAM")}</H3>
// <Posts>
// {posts.map((post) => (
// <Post href={`https://instagram.com/${post.username}`} key={post.id}>
// <Image src={post.preview} />
// <BottomRow>@{post.username}</BottomRow>
// {/* <Caption>{post.caption}</Caption> */}
// </Post>
// ))}
// </Posts>
// </Container>
// )
}

export default InstagramFeaturette
Expand Down
4 changes: 2 additions & 2 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GatsbyImage } from "../../@types/childImageSharp"
import { Meta } from "../../@types/content/meta"
import devices from "../devices"
import PersonCard from "../components/About/PersonCard"
import InstagramFeaturette from "../components/Footer/InstagramFeaturette"
// import InstagramFeaturette from "../components/Footer/InstagramFeaturette"
import { H1, H2 } from "../components/Html/HtmlContent"
import Layout from "../components/layout"
import { Container, P } from "../components/Primitives"
Expand Down Expand Up @@ -158,7 +158,7 @@ const AboutPage: FC<PageProps<Props>> = ({
<P>{t("ABOUT.WORK_FOR_US_TEXT")}</P>
</JoinUs>

<InstagramFeaturette />
{/* <InstagramFeaturette /> */}
</Container>
</Layout>
)
Expand Down

0 comments on commit 32d09a0

Please sign in to comment.