mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
Use better imports for react-bootstrap
This commit is contained in:
parent
3ca6f6553b
commit
71fb896378
18 changed files with 22 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
|
||||
export class AccountsButton extends PureComponent {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormControl } from 'react-bootstrap';
|
||||
import FormControl from 'react-bootstrap/lib/FormControl';
|
||||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
|
||||
export class AccountsField extends PureComponent {
|
||||
|
|
|
@ -2,7 +2,9 @@ import { ModalTrigger, Components, registerComponent, withList, Utils } from "me
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { Button, DropdownButton, MenuItem } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
|
||||
import MenuItem from 'react-bootstrap/lib/MenuItem';
|
||||
import { withRouter } from 'react-router'
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
import Categories from 'meteor/vulcan:categories';
|
||||
|
|
|
@ -2,7 +2,7 @@ import { ModalTrigger, Components, registerComponent } from 'meteor/vulcan:core'
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
import { MenuItem } from 'react-bootstrap';
|
||||
import MenuItem from 'react-bootstrap/lib/MenuItem'
|
||||
import { withRouter } from 'react-router'
|
||||
import Categories from 'meteor/vulcan:categories';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Alert } from 'react-bootstrap';
|
||||
import Alert from 'react-bootstrap/lib/Alert'
|
||||
|
||||
class Flash extends PureComponent {
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import Formsy from 'formsy-react';
|
||||
import { Input } from 'formsy-react-components';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
import Cookie from 'react-cookie';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, withMutation, withCurrentUser, withMessages, Utils } from 'meteor/vulcan:core';
|
||||
import React, { PropTypes, Component } from 'react';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
|
||||
class NewsletterButton extends Component {
|
||||
constructor(props) {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Components, registerComponent, withList, withCurrentUser, Utils } from
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Posts from 'meteor/vulcan:posts';
|
||||
import { Alert } from 'react-bootstrap';
|
||||
import Alert from 'react-bootstrap/lib/Alert'
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import classNames from 'classnames';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:co
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
|
||||
const PostsNewButton = (props, context) => {
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@ import { registerComponent, withCurrentUser } from 'meteor/vulcan:core';
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { DropdownButton, MenuItem } from 'react-bootstrap';
|
||||
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
|
||||
import MenuItem from 'react-bootstrap/lib/MenuItem';
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
import { withRouter } from 'react-router'
|
||||
import Users from 'meteor/vulcan:users';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent } from 'meteor/vulcan:core';
|
||||
import React, { PropTypes, Component } from 'react';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { Dropdown } from 'react-bootstrap';
|
||||
import Dropdown from 'react-bootstrap/lib/Dropdown';
|
||||
import { STATES } from 'meteor/vulcan:accounts';
|
||||
|
||||
const UsersAccountMenu = ({state}) =>
|
||||
|
|
|
@ -3,7 +3,8 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Dropdown, MenuItem } from 'react-bootstrap';
|
||||
import Dropdown from 'react-bootstrap/lib/Dropdown';
|
||||
import MenuItem from 'react-bootstrap/lib/MenuItem';
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
import { withApollo } from 'react-apollo';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal } from 'react-bootstrap';
|
||||
import Modal from 'react-bootstrap/lib/Modal'
|
||||
import Users from 'meteor/vulcan:users';
|
||||
import { withDocument, Components, registerComponent, withMessages } from 'meteor/vulcan:core';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { registerComponent } from 'meteor/vulcan:lib';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Modal } from 'react-bootstrap';
|
||||
import Modal from 'react-bootstrap/lib/Modal'
|
||||
|
||||
class ModalTrigger extends PureComponent {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent } from 'meteor/vulcan:core';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
import VulcanEmail from 'meteor/vulcan:email';
|
||||
|
||||
class Email extends PureComponent {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Alert } from 'react-bootstrap';
|
||||
import Alert from 'react-bootstrap/lib/Alert'
|
||||
|
||||
const Flash = ({message}) => {
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import React, { Component } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import Formsy from 'formsy-react';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Button from 'react-bootstrap/lib/Button';
|
||||
import Flash from "./Flash.jsx";
|
||||
import FormGroup from "./FormGroup.jsx";
|
||||
import { flatten, deepValue, getEditableFields, getInsertableFields } from './utils.js';
|
||||
|
|
|
@ -27,7 +27,7 @@ const schema = {
|
|||
viewableBy: ['guests'],
|
||||
insertableBy: ['guests'],
|
||||
onInsert: user => {
|
||||
if (user.services.twitter && user.services.twitter.screenName) {
|
||||
if (user.services && user.services.twitter && user.services.twitter.screenName) {
|
||||
return user.services.twitter.screenName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue