Skip to content

Commit

Permalink
example-membership: Use vulcan-ui-bootstrap.
Browse files Browse the repository at this point in the history
Moving away of direct react-bootstrap dependency (issue VulcanJS#50).
  • Loading branch information
kabalin committed May 1, 2018
1 parent 1e567f7 commit 9d7c8b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/example-membership/lib/components/pics/PicsHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Pics Home component
import React from 'react';
import { registerComponent, Components, withCurrentUser } from 'meteor/vulcan:core';
import Users from 'meteor/vulcan:users';
import Button from 'react-bootstrap/lib/Button';

const PicsHome = ({results = [], currentUser, loading, loadMore, count, totalCount}) => {
if (currentUser) {
Expand All @@ -24,7 +23,7 @@ const PicsHome = ({results = [], currentUser, loading, loadMore, count, totalCou
associatedCollection={Users}
associatedDocument={currentUser}
fragmentName="UsersCurrent"
button={<Button bsStyle="primary">Buy membership</Button>}
button={<Components.Button variant="primary">Buy membership</Components.Button>}
/>

}
Expand All @@ -44,4 +43,4 @@ const PicsHome = ({results = [], currentUser, loading, loadMore, count, totalCou

};

registerComponent('PicsHome', PicsHome, withCurrentUser);
registerComponent('PicsHome', PicsHome, withCurrentUser);
1 change: 1 addition & 0 deletions packages/example-membership/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Package.onUse(function (api) {
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',

// third-party packages
'fourseven:[email protected]',
Expand Down

0 comments on commit 9d7c8b5

Please sign in to comment.