Skip to content

Commit

Permalink
Merge pull request #133 from bigcapitalhq/add-duplicate-icon-to-list
Browse files Browse the repository at this point in the history
fix(webapp): add duplicate icon to customers and vendors table
  • Loading branch information
abouolia authored Jun 11, 2023
2 parents f716d42 + 73b041d commit eb9b6ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function ActionsMenu({
/>
<Can I={CustomerAction.Edit} a={AbilitySubject.Customer}>
<MenuDivider />

<MenuItem
icon={<Icon icon="pen-18" />}
text={intl.get('edit_customer')}
Expand All @@ -47,7 +46,7 @@ export function ActionsMenu({
</Can>
<Can I={CustomerAction.Create} a={AbilitySubject.Customer}>
<MenuItem
icon={<Icon icon="duplicate-16" />}
icon={<Icon icon="content-copy" iconSize={16} />}
text={intl.get('duplicate')}
onClick={safeCallback(onDuplicate, original)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { useCustomerOpeningBalanceContext } from './CustomerOpeningBalanceFormPr
import withDialogActions from '@/containers/Dialog/withDialogActions';
import { compose } from '@/utils';


/**
* Customer Opening balance floating actions.
* @returns
Expand All @@ -31,6 +30,9 @@ function CustomerOpeningBalanceFormFloatingActions({
return (
<div className={Classes.DIALOG_FOOTER}>
<div className={Classes.DIALOG_FOOTER_ACTIONS}>
<Button onClick={handleCancelBtnClick} style={{ minWidth: '75px' }}>
<T id={'cancel'} />
</Button>
<Button
intent={Intent.PRIMARY}
loading={isSubmitting}
Expand All @@ -39,9 +41,6 @@ function CustomerOpeningBalanceFormFloatingActions({
>
{<T id={'edit'} />}
</Button>
<Button onClick={handleCancelBtnClick} style={{ minWidth: '75px' }}>
<T id={'cancel'} />
</Button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function ActionsMenu({
</Can>
<Can I={VendorAction.Create} a={AbilitySubject.Customer}>
<MenuItem
icon={<Icon icon="duplicate-16" />}
icon={<Icon icon="content-copy" iconSize={16} />}
text={intl.get('duplicate')}
onClick={safeCallback(onDuplicate, original)}
/>
Expand Down

0 comments on commit eb9b6ce

Please sign in to comment.