|
|
@ -112,52 +112,42 @@ class AddNewBookSearchResult extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<div className={styles.content}>
|
|
|
|
<div className={styles.content}>
|
|
|
|
<div className={styles.name}>
|
|
|
|
<div className={styles.titleRow}>
|
|
|
|
{title}
|
|
|
|
<div className={styles.titleContainer}>
|
|
|
|
|
|
|
|
<div className={styles.title}>
|
|
|
|
{
|
|
|
|
{title}
|
|
|
|
!!disambiguation &&
|
|
|
|
|
|
|
|
<span className={styles.year}>({disambiguation})</span>
|
|
|
|
{
|
|
|
|
}
|
|
|
|
!!disambiguation &&
|
|
|
|
|
|
|
|
<span className={styles.year}>({disambiguation})</span>
|
|
|
|
{
|
|
|
|
}
|
|
|
|
isExistingBook ?
|
|
|
|
</div>
|
|
|
|
<Icon
|
|
|
|
</div>
|
|
|
|
className={styles.alreadyExistsIcon}
|
|
|
|
|
|
|
|
name={icons.CHECK_CIRCLE}
|
|
|
|
<div className={styles.icons}>
|
|
|
|
size={20}
|
|
|
|
{
|
|
|
|
title="Book already in your library"
|
|
|
|
isExistingBook ?
|
|
|
|
/> :
|
|
|
|
<Icon
|
|
|
|
null
|
|
|
|
className={styles.alreadyExistsIcon}
|
|
|
|
}
|
|
|
|
name={icons.CHECK_CIRCLE}
|
|
|
|
|
|
|
|
size={36}
|
|
|
|
<Link
|
|
|
|
title="Already in your library"
|
|
|
|
className={styles.mbLink}
|
|
|
|
/> :
|
|
|
|
to={`https://goodreads.com/book/show/${editions[0].foreignEditionId}`}
|
|
|
|
null
|
|
|
|
onPress={this.onMBLinkPress}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
|
|
|
|
<Icon
|
|
|
|
<Link
|
|
|
|
className={styles.mbLinkIcon}
|
|
|
|
className={styles.mbLink}
|
|
|
|
name={icons.EXTERNAL_LINK}
|
|
|
|
to={`https://goodreads.com/book/show/${editions[0].foreignEditionId}`}
|
|
|
|
size={28}
|
|
|
|
onPress={this.onTVDBLinkPress}
|
|
|
|
/>
|
|
|
|
>
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<span className={styles.authorName}> By: {author.authorName}</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
isExistingAuthor ?
|
|
|
|
|
|
|
|
<Icon
|
|
|
|
<Icon
|
|
|
|
className={styles.alreadyExistsIcon}
|
|
|
|
className={styles.mbLinkIcon}
|
|
|
|
name={icons.CHECK_CIRCLE}
|
|
|
|
name={icons.EXTERNAL_LINK}
|
|
|
|
size={15}
|
|
|
|
size={28}
|
|
|
|
title="Author already in your library"
|
|
|
|
/>
|
|
|
|
/> :
|
|
|
|
</Link>
|
|
|
|
null
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|