refactor: note options tag selection menu
This commit is contained in:
@@ -9,6 +9,7 @@ import { IconType } from '@standardnotes/snjs'
|
|||||||
import { getTitleForLinkedTag } from '@/Utils/Items/Display/getTitleForLinkedTag'
|
import { getTitleForLinkedTag } from '@/Utils/Items/Display/getTitleForLinkedTag'
|
||||||
import { useApplication } from '../ApplicationView/ApplicationProvider'
|
import { useApplication } from '../ApplicationView/ApplicationProvider'
|
||||||
import MenuItem from '../Menu/MenuItem'
|
import MenuItem from '../Menu/MenuItem'
|
||||||
|
import Menu from '../Menu/Menu'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
navigationController: NavigationController
|
navigationController: NavigationController
|
||||||
@@ -53,6 +54,7 @@ const AddTagOption: FunctionComponent<Props> = ({ navigationController, notesCon
|
|||||||
align="start"
|
align="start"
|
||||||
className="py-2"
|
className="py-2"
|
||||||
>
|
>
|
||||||
|
<Menu a11yLabel="Tag selection menu" isOpen={isOpen}>
|
||||||
{navigationController.tags.map((tag) => (
|
{navigationController.tags.map((tag) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
key={tag.uuid}
|
key={tag.uuid}
|
||||||
@@ -77,6 +79,7 @@ const AddTagOption: FunctionComponent<Props> = ({ navigationController, notesCon
|
|||||||
</span>
|
</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
))}
|
))}
|
||||||
|
</Menu>
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user