Revert "Revert "feat: update note type menu design (#1032)""

This reverts commit b36c9d09bc.
This commit is contained in:
Mo
2022-05-20 11:41:12 -05:00
parent e52e2daf39
commit 09af8bf6d8
5 changed files with 41 additions and 36 deletions

View File

@@ -67,7 +67,7 @@ export const MenuItem: FunctionComponent<MenuItemProps> = forwardRef(
>
{type === MenuItemType.IconButton && icon ? <Icon type={icon} className={iconClassName} /> : null}
{type === MenuItemType.RadioButton && typeof checked === 'boolean' ? (
<div className={`pseudo-radio-btn ${checked ? 'pseudo-radio-btn--checked' : ''} mr-2 flex-shrink-0`}></div>
<div className={`pseudo-radio-btn ${checked ? 'pseudo-radio-btn--checked' : ''} flex-shrink-0`}></div>
) : null}
{children}
</button>