refactor: menu option key

This commit is contained in:
Corentin Thomasset 2022-04-07 22:14:18 +02:00
parent 5f74037105
commit 390ef93232
No known key found for this signature in database
GPG Key ID: DBD997E935996158

View File

@ -21,7 +21,8 @@ const m = toolsByCategory.map(category => ({
type: 'group',
children: category.components.map(({ name, path, icon }) => ({
label: makeLabel(name, path),
icon: makeIcon(icon)
icon: makeIcon(icon),
key: name
}))
}))