mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
40 lines
859 B
JavaScript
40 lines
859 B
JavaScript
import React from 'react';
|
|
import {
|
|
Button,
|
|
Intent,
|
|
} from '@blueprintjs/core';
|
|
import { FormattedMessage as T } from 'react-intl';
|
|
|
|
import Icon from 'components/Icon';
|
|
import withDialogActions from 'containers/Dialog/withDialogActions';
|
|
import {compose} from 'utils';
|
|
|
|
function UsersActions({
|
|
openDialog,
|
|
closeDialog,
|
|
}) {
|
|
const onClickNewUser = () => {
|
|
openDialog('invite-user');
|
|
};
|
|
|
|
return (
|
|
<div className="preferences-actions">
|
|
<Button
|
|
icon={<Icon icon='plus' iconSize={12} />}
|
|
onClick={onClickNewUser}
|
|
intent={Intent.PRIMARY}>
|
|
<T id={'invite_user'} />
|
|
</Button>
|
|
|
|
<Button
|
|
icon={<Icon icon='plus' iconSize={12} />}
|
|
onClick={onClickNewUser}>
|
|
<T id={'new_role'} />
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default compose(
|
|
withDialogActions,
|
|
)(UsersActions); |