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', type: 'group',
children: category.components.map(({ name, path, icon }) => ({ children: category.components.map(({ name, path, icon }) => ({
label: makeLabel(name, path), label: makeLabel(name, path),
icon: makeIcon(icon) icon: makeIcon(icon),
key: name
})) }))
})) }))