fix(contextMenu): fixes for context menu icon (#3275)
This commit is contained in:
1 parent
bc642fd2b6
commit
dd22e37e4c
15 files changed
+44
-28
No files matched your search
@@ -19,14 +19,11 @@ const ContextMenu = ({ items, ...props }) => {
|
||||
key={index}
|
||||
data-cy="context-menu-item"
|
||||
onClick={() => item.action(item, props)}
|
||||
style={{ justifyContent: 'space-between' }}
|
||||
className="flex px-4 py-3 cursor-pointer items-center transition duration-300 hover:bg-primary-dark border-b border-primary-dark last:border-b-0"
|
||||
>
|
||||
<Typography>
|
||||
{item.label}
|
||||
{item.iconRight && (
|
||||
<Icon name={item.iconRight} className="inline" />
|
||||
)}
|
||||
</Typography>
|
||||
<Typography>{item.label}</Typography>
|
||||
{item.iconRight && <Icon name={item.iconRight} className="inline" />}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user