From 2706eb77c72d14d9dc376c83d41fcc367d8c7a34 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 21 Jun 2018 21:06:53 +0200 Subject: [PATCH] more beta updates --- package.json | 24 +++++++++++------------- src/components/Layout.jsx | 8 ++++---- src/components/atoms/ProjectImage.jsx | 1 + src/components/molecules/ProjectNav.jsx | 2 +- src/components/organisms/Header.jsx | 2 +- src/pages/index.jsx | 2 +- src/templates/Project.jsx | 1 + 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 3d5f9b3..38c4b23 100644 --- a/package.json +++ b/package.json @@ -20,22 +20,20 @@ "svg": "./scripts/svg.sh" }, "dependencies": { - "camel-case": "^3.0.0", "file-saver": "^1.3.8", - "gatsby": "^2.0.0-beta.3", - "gatsby-image": "next", - "gatsby-link": "next", + "gatsby": "^2.0.0-beta.6", + "gatsby-image": "^2.0.0-beta.2", "gatsby-plugin-favicon": "^2.1.1", "gatsby-plugin-matomo": "^0.4.0", - "gatsby-plugin-offline": "next", - "gatsby-plugin-react-helmet": "next", - "gatsby-plugin-sass": "next", - "gatsby-plugin-sharp": "next", - "gatsby-plugin-sitemap": "next", - "gatsby-source-filesystem": "next", - "gatsby-transformer-json": "next", - "gatsby-transformer-sharp": "next", - "gatsby-transformer-yaml": "next", + "gatsby-plugin-offline": "^2.0.0-beta.2", + "gatsby-plugin-react-helmet": "^3.0.0-beta.2", + "gatsby-plugin-sass": "^2.0.0-beta.2", + "gatsby-plugin-sharp": "^2.0.0-beta.2", + "gatsby-plugin-sitemap": "^2.0.0-beta.2", + "gatsby-source-filesystem": "^2.0.1-beta.3", + "gatsby-transformer-json": "^2.1.1-beta.2", + "gatsby-transformer-sharp": "^2.1.1-beta.2", + "gatsby-transformer-yaml": "^2.1.1-beta.2", "giphy-js-sdk-core": "^1.0.3", "graphql": "^0.13.2", "intersection-observer": "^0.5.0", diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index aec818a..9275875 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -2,7 +2,7 @@ import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import withRouter from 'react-router-dom/withRouter' import TransitionGroup from 'react-transition-group/TransitionGroup' -import { StaticQuery } from 'gatsby' +import { StaticQuery, graphql } from 'gatsby' import Head from './atoms/Head' import Header from './organisms/Header' import Footer from './organisms/Footer' @@ -107,16 +107,16 @@ const TemplateWrapper = ({ children, location }) => { } TransitionHandler.propTypes = { - children: PropTypes.any, + children: PropTypes.any.isRequired, location: PropTypes.object.isRequired } Main.propTypes = { - children: PropTypes.any + children: PropTypes.any.isRequired } TemplateWrapper.propTypes = { - children: PropTypes.any, + children: PropTypes.any.isRequired, location: PropTypes.object.isRequired } diff --git a/src/components/atoms/ProjectImage.jsx b/src/components/atoms/ProjectImage.jsx index 7e59eee..efbe500 100644 --- a/src/components/atoms/ProjectImage.jsx +++ b/src/components/atoms/ProjectImage.jsx @@ -1,5 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' +import { graphql } from 'gatsby' import Img from 'gatsby-image' import './ProjectImage.scss' diff --git a/src/components/molecules/ProjectNav.jsx b/src/components/molecules/ProjectNav.jsx index ce5d94e..a81fedf 100644 --- a/src/components/molecules/ProjectNav.jsx +++ b/src/components/molecules/ProjectNav.jsx @@ -1,6 +1,6 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' -import Link from 'gatsby-link' +import { Link } from 'gatsby' import Img from 'gatsby-image' import styles from './ProjectNav.module.scss' diff --git a/src/components/organisms/Header.jsx b/src/components/organisms/Header.jsx index 34efc81..361820b 100644 --- a/src/components/organisms/Header.jsx +++ b/src/components/organisms/Header.jsx @@ -1,5 +1,5 @@ import React, { PureComponent } from 'react' -import Link from 'gatsby-link' +import { Link } from 'gatsby' import PropTypes from 'prop-types' import { FadeIn } from '../atoms/Animations' import Networks from '../molecules/Networks' diff --git a/src/pages/index.jsx b/src/pages/index.jsx index e919c6c..2730382 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import Link from 'gatsby-link' +import { Link, graphql } from 'gatsby' import Layout from '../components/Layout' import ProjectImage from '../components/atoms/ProjectImage' import FullWidth from '../components/atoms/FullWidth' diff --git a/src/templates/Project.jsx b/src/templates/Project.jsx index 468e173..2dec3c3 100644 --- a/src/templates/Project.jsx +++ b/src/templates/Project.jsx @@ -2,6 +2,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import ReactMarkdown from 'react-markdown' +import { graphql } from 'gatsby' import Layout from '../components/Layout' import Content from '../components/atoms/Content' import FullWidth from '../components/atoms/FullWidth'