Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from TylerBarnes/layout-props-fix
Browse files Browse the repository at this point in the history
Layout props fix
  • Loading branch information
TylerBarnes authored Nov 12, 2018
2 parents b7a0409 + 17c160c commit 37ca7fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-transition-link",
"version": "1.1.1",
"version": "1.1.2",
"description": "A link component for page transitions in gatsby.",
"repository": "https://github.com/TylerBarnes/gatsby-plugin-transition-link",
"homepage": "https://gatsby-plugin-transition-link.netlify.com/",
Expand Down
1 change: 1 addition & 0 deletions src/components/TransitionHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class TransitionHandler extends Component {
entryTrigger,
entryProps,
exitProps,
pathname,
e
})
}
Expand Down
1 change: 1 addition & 0 deletions src/functions/onEnter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const onEnter = ({
entryTrigger,
entryProps,
exitProps,
pathname,
e
}) => {
// fix scroll jumping when navigating with browser buttons
Expand Down
16 changes: 1 addition & 15 deletions src/wrap-page.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
// import React from "react";
// import TransitionHandler from "./components/TransitionHandler";
// import InternalProvider from "./context/InternalProvider";
const React = require("react");
const TransitionHandler = require("./components/TransitionHandler").default;
const InternalProvider = require("./context/InternalProvider").default;
const Layout = require("./components/Layout").LayoutComponent;

// export default ({ element, props }) => {
// return (
// <InternalProvider>
// <TransitionHandler location={props.location}>{element}</TransitionHandler>
// </InternalProvider>
// );
// };

// eslint-disable-next-line react/prop-types,react/display-name
module.exports = ({ element, props }) => {
return (
<InternalProvider>
{/* <Layout {...props}> */}
<TransitionHandler location={props.location}>{element}</TransitionHandler>
{/* </Layout> */}
<TransitionHandler {...props}>{element}</TransitionHandler>
</InternalProvider>
);
};

0 comments on commit 37ca7fb

Please sign in to comment.