refactor: flow typing (#1012)

* fix: padding

* fix: Minor button alignment issues

* feat: Add icon to invite people button

* WIP
This commit is contained in:
Tom Moor
2019-08-08 23:09:09 -07:00
committed by GitHub
parent 7b2eea0009
commit d024d31f66
64 changed files with 207 additions and 144 deletions

View File

@ -14,7 +14,7 @@ type Props = {
@observer
class UserMenu extends React.Component<Props> {
handlePromote = (ev: SyntheticEvent<*>) => {
handlePromote = (ev: SyntheticEvent<>) => {
ev.preventDefault();
const { user, users } = this.props;
if (
@ -29,7 +29,7 @@ class UserMenu extends React.Component<Props> {
users.promote(user);
};
handleDemote = (ev: SyntheticEvent<*>) => {
handleDemote = (ev: SyntheticEvent<>) => {
ev.preventDefault();
const { user, users } = this.props;
if (!window.confirm(`Are you want to make ${user.name} a member?`)) {
@ -38,7 +38,7 @@ class UserMenu extends React.Component<Props> {
users.demote(user);
};
handleSuspend = (ev: SyntheticEvent<*>) => {
handleSuspend = (ev: SyntheticEvent<>) => {
ev.preventDefault();
const { user, users } = this.props;
if (
@ -51,7 +51,7 @@ class UserMenu extends React.Component<Props> {
users.suspend(user);
};
handleActivate = (ev: SyntheticEvent<*>) => {
handleActivate = (ev: SyntheticEvent<>) => {
ev.preventDefault();
const { user, users } = this.props;
users.activate(user);