extra!
This commit is contained in:
parent
74f9d07f1e
commit
da8ebb5cc9
|
@ -4,10 +4,12 @@ import { FoodExcludeTypes } from "./types";
|
||||||
export const FoodItemsContainer = (props: {
|
export const FoodItemsContainer = (props: {
|
||||||
children: JSX.Element | JSX.Element[] | null
|
children: JSX.Element | JSX.Element[] | null
|
||||||
title: string,
|
title: string,
|
||||||
|
extra?: string,
|
||||||
}): JSX.Element => {
|
}): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h3>{props.title}</h3>
|
<h3>{props.title}</h3>
|
||||||
|
{props.extra && <p>{props.extra}</p>}
|
||||||
<div class="list-group" role="list">
|
<div class="list-group" role="list">
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -120,7 +120,7 @@ export class MainPage extends Component<unknown, { toggles: FoodExcludeTypes }>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<FoodItemsContainer title="Breakfast">
|
<FoodItemsContainer title="Breakfast" extra="don't often have breakfast, but this is what we would have">
|
||||||
<FoodItem title="Marmite Toast" />
|
<FoodItem title="Marmite Toast" />
|
||||||
<FoodItem title="Bagels" />
|
<FoodItem title="Bagels" />
|
||||||
<AdvancedFoodItem title="Jam Toast" extra={"light thin layer of jam, not chunky jam; jams like cloudberry, strawberry, raspberry, orange"} />
|
<AdvancedFoodItem title="Jam Toast" extra={"light thin layer of jam, not chunky jam; jams like cloudberry, strawberry, raspberry, orange"} />
|
||||||
|
|
Loading…
Reference in a new issue