fix(shared): Provide control to menu items to allow User Experience circles to be filled
This commit is contained in:
parent
adf83eda8c
commit
02bb16b131
1 changed files with 9 additions and 8 deletions
|
@ -193,10 +193,10 @@ export const MenuItemGroup = ({
|
|||
const ItemIcon = item.icon
|
||||
? item.icon
|
||||
: item.isGroup
|
||||
? GroupIcon
|
||||
: Icon
|
||||
? Icon
|
||||
: () => <span role="img">fixme-icon</span>
|
||||
? GroupIcon
|
||||
: Icon
|
||||
? Icon
|
||||
: () => <span role="img">fixme-icon</span>
|
||||
const Value = item.isGroup
|
||||
? () => (
|
||||
<div className="flex flex-row gap-2 items-center font-medium">
|
||||
|
@ -205,10 +205,10 @@ export const MenuItemGroup = ({
|
|||
</div>
|
||||
)
|
||||
: isDesignOptionsGroup
|
||||
? values[optionType(item)]
|
||||
: values[itemName]
|
||||
? values[itemName]
|
||||
: () => <span>¯\_(ツ)_/¯</span>
|
||||
? values[optionType(item)]
|
||||
: values[itemName]
|
||||
? values[itemName]
|
||||
: () => <span>¯\_(ツ)_/¯</span>
|
||||
|
||||
return [
|
||||
<div className="flex flex-row items-center justify-between w-full" key="a">
|
||||
|
@ -223,6 +223,7 @@ export const MenuItemGroup = ({
|
|||
t={t}
|
||||
changed={wasChanged(currentValues[itemName], item)}
|
||||
design={design}
|
||||
control={control}
|
||||
/>
|
||||
</div>
|
||||
</div>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue