Skip to content

Commit

Permalink
Merge pull request #27 from csci5117s24/demoPrep
Browse files Browse the repository at this point in the history
Bug fixes - demo ready
  • Loading branch information
TCKnickerbocker authored May 6, 2024
2 parents 8539b25 + 92c4e03 commit dad56cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/FoodItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function FoodItem({ food }) {
<ListGroup variant="flush">
<ListGroup.Item className={`list-group-flush`}>
<div className={Layout.text+" "+Layout.quantity}>Quantity: &ensp;
<input type="text"
<input type="number"
value={quantity} onChange={(e)=>setQuantity(e.target.value)}
min="0"/>
</div>
Expand Down Expand Up @@ -209,7 +209,7 @@ export default function FoodItem({ food }) {
<ListGroup variant="flush">

<ListGroup.Item className={`${Layout.text} ${Layout.quantity} list-group-flush`}>
<span className={`${(quantity===0) ? Layout.redText : ''}`}>
<span className={`${(!quantity || Number(quantity)===0) ? Layout.redText : ''}`}>
Quantity: {quantity ? quantity : 0}
</span>
</ListGroup.Item>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/food/CreateFood.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function CreateFood() {
) :
hasSearched && results.length === 0 && (
<Alert key="danger" variant="danger" className={searchStyle.centerContents + " " + searchStyle.alertBar}>
No results for "{food}"
No results for '{food}'
</Alert>
)
}
Expand Down

0 comments on commit dad56cf

Please sign in to comment.