1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-28 00:27:40 +02:00

package updates

* closes #83
* closes #84
This commit is contained in:
Matthias Kretschmann 2019-01-01 19:35:42 +01:00
parent 4b66afc750
commit 00140fef44
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 24 additions and 14 deletions

View File

@ -23,27 +23,27 @@
}, },
"dependencies": { "dependencies": {
"file-saver": "^2.0.0", "file-saver": "^2.0.0",
"gatsby": "^2.0.67", "gatsby": "^2.0.80",
"gatsby-image": "^2.0.25", "gatsby-image": "^2.0.25",
"gatsby-plugin-favicon": "^3.1.4", "gatsby-plugin-favicon": "^3.1.5",
"gatsby-plugin-matomo": "^0.6.0", "gatsby-plugin-matomo": "^0.6.0",
"gatsby-plugin-offline": "^2.0.19", "gatsby-plugin-offline": "^2.0.20",
"gatsby-plugin-react-helmet": "^3.0.4", "gatsby-plugin-react-helmet": "^3.0.5",
"gatsby-plugin-sass": "^2.0.7", "gatsby-plugin-sass": "^2.0.7",
"gatsby-plugin-sharp": "^2.0.15", "gatsby-plugin-sharp": "^2.0.17",
"gatsby-plugin-sitemap": "^2.0.3", "gatsby-plugin-sitemap": "^2.0.4",
"gatsby-plugin-svgr": "^2.0.1", "gatsby-plugin-svgr": "^2.0.1",
"gatsby-source-filesystem": "^2.0.12", "gatsby-source-filesystem": "^2.0.12",
"gatsby-transformer-json": "^2.1.6", "gatsby-transformer-json": "^2.1.6",
"gatsby-transformer-sharp": "^2.1.9", "gatsby-transformer-sharp": "^2.1.10",
"gatsby-transformer-yaml": "^2.1.6", "gatsby-transformer-yaml": "^2.1.6",
"giphy-js-sdk-core": "^1.0.6", "giphy-js-sdk-core": "^1.0.6",
"graphql": "^0.13.2", "graphql": "^0.13.2",
"intersection-observer": "^0.5.1", "intersection-observer": "^0.5.1",
"js-yaml": "^3.12.0", "js-yaml": "^3.12.0",
"node-sass": "^4.11.0", "node-sass": "^4.11.0",
"react": "^16.6.3", "react": "^16.7.0",
"react-dom": "^16.6.3", "react-dom": "^16.7.0",
"react-helmet": "^5.2.0", "react-helmet": "^5.2.0",
"react-pose": "^4.0.4", "react-pose": "^4.0.4",
"remark": "^10.0.1", "remark": "^10.0.1",
@ -55,18 +55,18 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.2.2", "@babel/core": "^7.2.2",
"@babel/node": "^7.2.2", "@babel/node": "^7.2.2",
"@babel/polyfill": "^7.0.0", "@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.2.0", "@babel/preset-env": "^7.2.3",
"@svgr/webpack": "^4.1.0", "@svgr/webpack": "^4.1.0",
"ava": "^1.0.1", "ava": "^1.0.1",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
"chrome-launcher": "^0.10.5", "chrome-launcher": "^0.10.5",
"eslint": "^5.10.0", "eslint": "^5.11.1",
"eslint-config-prettier": "^3.3.0", "eslint-config-prettier": "^3.3.0",
"eslint-loader": "^2.1.1", "eslint-loader": "^2.1.1",
"eslint-plugin-graphql": "^3.0.1", "eslint-plugin-graphql": "^3.0.1",
"eslint-plugin-prettier": "^3.0.0", "eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.11.1", "eslint-plugin-react": "^7.12.0",
"lighthouse": "^4.0.0-alpha.2-3.2.1", "lighthouse": "^4.0.0-alpha.2-3.2.1",
"ora": "^3.0.0", "ora": "^3.0.0",
"prepend": "^1.0.2", "prepend": "^1.0.2",

View File

@ -28,6 +28,10 @@ const query = graphql`
` `
class NetworkIcon extends PureComponent { class NetworkIcon extends PureComponent {
static propTypes = {
title: PropTypes.string
}
render() { render() {
switch (this.props.title) { switch (this.props.title) {
case 'Email': case 'Email':

View File

@ -1,8 +1,14 @@
import React from 'react' import React from 'react'
import PropTypes from 'prop-types'
import Layout from '../components/Layout' import Layout from '../components/Layout'
const wrapPageElement = ({ element, props }) => ( const wrapPageElement = ({ element, props }) => (
<Layout {...props}>{element}</Layout> <Layout {...props}>{element}</Layout>
) )
wrapPageElement.propTypes = {
element: PropTypes.any,
props: PropTypes.any
}
export default wrapPageElement export default wrapPageElement