Skip to content

Commit

Permalink
example-forms: 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 Apr 27, 2018
1 parent 27b6102 commit 9ca15f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 4 additions & 5 deletions packages/example-forms/lib/components/FormFunnel.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { registerComponent } from 'meteor/vulcan:core';
import Button from 'react-bootstrap/lib/Button';
import { Components, registerComponent } from 'meteor/vulcan:core';

const funnel = ['lead', 'prospect', 'customer'];

Expand All @@ -18,14 +17,14 @@ class FormFunnel extends PureComponent {
<ul className="form-funnel-wrapper">
{funnel.map((stage, i) => (
<li key={i}>
<Button
<Components.Button
onClick={() => {
this.update(stage);
}}
bsStyle={this.props.value === stage ? 'primary' : 'default'}
variant={this.props.value === stage ? 'primary' : 'default'}
>
{stage}
</Button>
</Components.Button>
{i < funnel.length - 1 && <div className="form-funnel-separator"></div>}
</li>
))}
Expand Down
9 changes: 5 additions & 4 deletions packages/example-forms/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ Package.onUse(function (api) {

api.use([
// vulcan core
'vulcan:core@1.8.9',
'vulcan:core@1.9.1',

// vulcan packages
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',
'vulcan:[email protected]',

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

0 comments on commit 9ca15f8

Please sign in to comment.