import React, { PropTypes, Component } from 'react';
import Router from '../router.js'
import { Dropdown } from 'react-bootstrap';
import { Button, Input } from 'react-bootstrap';
import { Accounts, redirect } from 'meteor/studiointeract:react-accounts-ui';
const AccountsMenu = () => {
({UserAvatar, UserName} = Telescope.components);
return (
Log In
)
}
module.exports = AccountsMenu;
export default AccountsMenu;
// customize Accounts.ui
Accounts.ui.config({
passwordSignupFields: 'USERNAME_AND_EMAIL',
});
class AccountsButton extends Accounts.ui.Button {
render() {
const { label, type, disabled = false, onClick, className } = this.props;
return type == 'link' ? (
) : (
);
}
}
class AccountsField extends Accounts.ui.Field {
render() {
const { id, hint, label, type = 'text', onChange, className = "field" } = this.props;
return (
);
}
}
Accounts.ui.Button = AccountsButton;
Accounts.ui.Field = AccountsField;