Merge pull request #88 from bigcapitalhq/BIG-411-no-icon-on-the-duplicate-item-menu

fix(webapp): add icon to duplicate item of items context menu
This commit is contained in:
Ahmed Bouhuolia
2023-02-16 22:34:58 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ export function ItemsActionMenuList({
</Can>
<Can I={ItemAction.Create} a={AbilitySubject.Item}>
<MenuItem
icon={<Icon icon="duplicate-16" />}
icon={<Icon icon="content-copy" iconSize={16} />}
text={intl.get('duplicate')}
onClick={safeCallback(onDuplicate, original)}
/>

View File

@@ -559,4 +559,10 @@ export default {
],
viewBox: '0 0 24 24',
},
'content-copy': {
path: [
'M15 0H5c-.55 0-1 .45-1 1v2h2V2h8v7h-1v2h2c.55 0 1-.45 1-1V1c0-.55-.45-1-1-1zm-4 4H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-1 10H2V6h8v8z'
],
viewBox: '0 0 16 16'
}
};