Issue #5: Creacion de boton AddToList
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import React from "react";
|
||||
import "./Entity.scss"
|
||||
|
||||
import "./Entity.scss";
|
||||
|
||||
import {AddToList} from "./AddToList";
|
||||
|
||||
export const Entity = (props) => {
|
||||
const hasCover = props.cover;
|
||||
const hasTags = props.tags && props.tags.length > 0;
|
||||
const hasButton = props.onButtonClick || props.buttonText
|
||||
|
||||
return (
|
||||
<div className='entity'>
|
||||
@@ -20,9 +22,7 @@ export const Entity = (props) => {
|
||||
</ul>
|
||||
}
|
||||
</div>
|
||||
{hasButton &&
|
||||
<button className='button' onClick={props.onButtonClick}>{props.buttonText}</button>
|
||||
}
|
||||
<AddToList/>
|
||||
</div>
|
||||
|
||||
{hasCover &&
|
||||
|
||||
Reference in New Issue
Block a user