feat(branches): add branches.

This commit is contained in:
elforjani13
2022-01-23 23:23:40 +02:00
parent a958c6088a
commit 45d9e2cc15
21 changed files with 648 additions and 10 deletions

View File

@@ -0,0 +1,29 @@
import React from 'react';
import { Button, Intent } from '@blueprintjs/core';
import { FormattedMessage as T, Icon } from 'components';
import withDialogActions from 'containers/Dialog/withDialogActions';
import { compose } from 'utils';
function BranchesActions({
//#ownProps
openDialog,
}) {
const handleClickNewBranche = () => {
openDialog('branch-form');
};
return (
<React.Fragment>
<Button
icon={<Icon icon="plus" iconSize={12} />}
onClick={handleClickNewBranche}
intent={Intent.PRIMARY}
>
<T id={'branches.label.new_branche'} />
</Button>
</React.Fragment>
);
}
export default compose(withDialogActions)(BranchesActions);