Skip to content
Permalink
Browse files

Fixes the color of the overlay when you press return in work experien…

…ce, the color is now obtained from the option experience from the menuLinks that appears in the configuration
  • Loading branch information
christiandavid committed Jan 14, 2020
1 parent 1071e6c commit 7d09c5e56c50850fbeabc5898ce800b60e938d91
Showing with 9 additions and 2 deletions.
  1. +9 −2 @christiandavid/gatsby-theme-byfolio/src/components/Slideshow/index.js
@@ -92,16 +92,23 @@ const Slideshow = ({ images, children }) => {
site {
siteMetadata {
basePath
menuLinks {
color
name
}
}
}
}
`
const {
site: {
siteMetadata: { basePath },
siteMetadata: { basePath, menuLinks },
},
} = useStaticQuery(siteQuery)

const experienceLink = menuLinks.find(({ name }) => name === "experience")
const bgColor = experienceLink ? experienceLink.color : "#3a3d98"

return (
<>
<Helmet
@@ -122,7 +129,7 @@ const Slideshow = ({ images, children }) => {
css={styles.arrowBack}
direction="right"
data-test="goback"
bg="#3a3d98"
bg={bgColor}
style={{ opacity: 1 }}
>
<svg css={styles.iconJob}>

0 comments on commit 7d09c5e

Please sign in to comment.
You can’t perform that action at this time.