Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
adityabhandari252 committed Apr 30, 2022
1 parent ef8325f commit 8297a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 2 additions & 3 deletions client/src/components/Food.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Tags from './Tags.js'
import pen from './../images/pen.svg'
import checkmark from './../images/instockMark.svg'
import xmark from '../images/notinstock.svg'
import { useState } from 'react';


function Food(props) {
Expand Down Expand Up @@ -62,9 +63,7 @@ function Food(props) {
{/* style={{paddingRight: "11%"}} style={{paddingLeft: "6%"}} */}
<div className ="food-inStockCheck">
In Stock
<input type="checkbox" checked={props.in_stock} onChange={() => {
props.in_stock = !props.in_stock
}}></input>
<input type="checkbox" checked = {props.in_stock}></input>
</div>
</div>

Expand Down
11 changes: 1 addition & 10 deletions client/src/pages/StockListingAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,6 @@ export function StockListingAdmin() {
in_stock={foodItem.instock}
tags={foodItem.tags}
admin={true}
onChange={() => {
foodItem.instock = !foodItem.instock
}}


/>))}

Expand Down Expand Up @@ -509,12 +505,7 @@ export function StockListingUser() {
name={foodItem.name}
image={foodItem.image}
in_stock={foodItem.instock}
tags={foodItem.tags}
onChange={() => {
foodItem.instock = !foodItem.instock
}}


tags={foodItem.tags}
/>))}

</div>
Expand Down

0 comments on commit 8297a51

Please sign in to comment.