|
|
@ -6,7 +6,6 @@ interface ItemProps<Item> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
interface ListProps<Item> { |
|
|
interface ListProps<Item> { |
|
|
id: string; |
|
|
|
|
|
map: { [key: string]: Item }; |
|
|
map: { [key: string]: Item }; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -26,8 +25,8 @@ function SearchableList<Item>( |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div id={id} className="flex flex-col h-full px-3"> |
|
|
|
|
|
<ul className="flex-1 flex flex-col">{children}</ul> |
|
|
|
|
|
|
|
|
<div className="flex flex-col h-full px-3"> |
|
|
|
|
|
<ul className="flex-grow flex flex-col">{children}</ul> |
|
|
</div> |
|
|
</div> |
|
|
); |
|
|
); |
|
|
}; |
|
|
}; |
|
|
|