1
0
Fork 0
This commit is contained in:
ChaotiCryptidz 2022-06-02 15:49:09 +01:00
parent bac911d593
commit 01c8bf372c
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ export const FoodItemsContainer = (props: {
} }
function shouldShowItem(contents, exclude: FoodExcludeTypes): boolean { function shouldShowItem(contents, exclude: FoodExcludeTypes): boolean {
if (!exclude) return false;
for (let key of Object.keys(exclude)) { for (let key of Object.keys(exclude)) {
if (Object.keys(contents).includes(key)) { if (Object.keys(contents).includes(key)) {
if (!exclude[key]) return false; if (!exclude[key]) return false;
@ -59,7 +59,7 @@ export class AdvancedFoodItem extends Component<FoodItemProps & { extra: string
render() { render() {
return ( return (
<HideIfFoodExcluded {...this.props}> <HideIfFoodExcluded {...this.props}>
<div class="list-group-item mb-1" role="listitem"> <div class="list-group-item">
<h5 class="mb-1">{this.props.title}</h5> <h5 class="mb-1">{this.props.title}</h5>
<p class="mb-1">{this.props.extra}</p> <p class="mb-1">{this.props.extra}</p>
</div> </div>