Skip to content

Commit bda9451

Browse files
committed
update import method
1 parent a2c7f63 commit bda9451

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

demo/App.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
2-
import InlineShareButtons from '../src/components/InlineShareButtons';
3-
import StickyShareButtons from '../src/components/StickyShareButtons';
2+
import {InlineShareButtons, StickyShareButtons} from 'sharethis-reactjs';
43

54
class App extends React.Component {
65

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// export products
2-
export InlineShareButtons from './components/InlineShareButtons';
3-
export InlineFollowButtons from './components/InlineFollowButtons';
4-
export StickyShareButtons from './components/StickyShareButtons';
2+
export {default as InlineShareButtons} from './components/InlineShareButtons';
3+
export {default as StickyShareButtons} from './components/StickyShareButtons';

0 commit comments

Comments
 (0)