This repository was archived by the owner on Sep 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Expand file tree Collapse file tree 4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gatsby-plugin-transition-link" ,
3
- "version" : " 1.1.1 " ,
3
+ "version" : " 1.1.2 " ,
4
4
"description" : " A link component for page transitions in gatsby." ,
5
5
"repository" : " https://github.com/TylerBarnes/gatsby-plugin-transition-link" ,
6
6
"homepage" : " https://gatsby-plugin-transition-link.netlify.com/" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export default class TransitionHandler extends Component {
52
52
entryTrigger,
53
53
entryProps,
54
54
exitProps,
55
+ pathname,
55
56
e
56
57
} )
57
58
}
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const onEnter = ({
5
5
entryTrigger,
6
6
entryProps,
7
7
exitProps,
8
+ pathname,
8
9
e
9
10
} ) => {
10
11
// fix scroll jumping when navigating with browser buttons
Original file line number Diff line number Diff line change 1
- // import React from "react";
2
- // import TransitionHandler from "./components/TransitionHandler";
3
- // import InternalProvider from "./context/InternalProvider";
4
1
const React = require ( "react" ) ;
5
2
const TransitionHandler = require ( "./components/TransitionHandler" ) . default ;
6
3
const InternalProvider = require ( "./context/InternalProvider" ) . default ;
7
- const Layout = require ( "./components/Layout" ) . LayoutComponent ;
8
-
9
- // export default ({ element, props }) => {
10
- // return (
11
- // <InternalProvider>
12
- // <TransitionHandler location={props.location}>{element}</TransitionHandler>
13
- // </InternalProvider>
14
- // );
15
- // };
16
4
17
5
// eslint-disable-next-line react/prop-types,react/display-name
18
6
module . exports = ( { element, props } ) => {
19
7
return (
20
8
< InternalProvider >
21
- { /* <Layout {...props}> */ }
22
- < TransitionHandler location = { props . location } > { element } </ TransitionHandler >
23
- { /* </Layout> */ }
9
+ < TransitionHandler { ...props } > { element } </ TransitionHandler >
24
10
</ InternalProvider >
25
11
) ;
26
12
} ;
You can’t perform that action at this time.
0 commit comments