chore: model menu functions behave as expected

This commit is contained in:
Danny Avila 2023-03-07 13:19:56 -05:00
parent 191118b90b
commit 6be037323e
9 changed files with 157 additions and 35 deletions

View file

@ -1,7 +1,7 @@
import React from 'react';
import ModelItem from './ModelItem';
export default function MenuItems({ models }) {
export default function MenuItems({ models, onSelect }) {
return (
<>
{models.map((modelItem, i) => (
@ -9,6 +9,7 @@ export default function MenuItems({ models }) {
key={i}
modelName={modelItem.name}
value={modelItem.value}
onSelect={onSelect}
/>
))}
</>