You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classShoppingListextendsComponent{constructor(props){super(props);this.state={childVisible: false}}/* Add conditional for listed items that also belong to the correct store to prevent unwanted items appearing under the wrong merchant */onClick(key,marketName){this.setState({childVisible: !this.state.childVisible});this.props.toggleItems();}render(){const{ name, user, handleDelete, appendTo }=this.props;return(<article><h3>{name}</h3><buttononClick={handleDelete}> Delete </button><buttononClick={()=>this.onClick()}> Select </button>{this.state.childVisible ?
<ShowItemsuser={this.props.user}appendTo={appendTo}content={this.props.content}/>
: <span></span>}</article>);}}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: