mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-27 16:50:11 +02:00
itemTile: fix fork n remove btns
This commit is contained in:
@@ -5,8 +5,8 @@ import Modal from './Modal';
|
|||||||
export function ItemTile({
|
export function ItemTile({
|
||||||
item,
|
item,
|
||||||
onClick,
|
onClick,
|
||||||
itemForkBtnClick,
|
onForkBtnClick,
|
||||||
itemRemoveBtnClick,
|
onRemoveBtnClick,
|
||||||
focusable
|
focusable
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
@@ -18,20 +18,20 @@ export function ItemTile({
|
|||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
<div class="saved-item-tile__btns">
|
<div class="saved-item-tile__btns">
|
||||||
{itemForkBtnClick ? (
|
{onForkBtnClick ? (
|
||||||
<a
|
<a
|
||||||
class="js-saved-item-tile__fork-btn saved-item-tile__btn hint--left hint--medium"
|
class="js-saved-item-tile__fork-btn saved-item-tile__btn hint--left hint--medium"
|
||||||
aria-label="Creates a duplicate of this creation (Ctrl/⌘ + F)"
|
aria-label="Creates a duplicate of this creation (Ctrl/⌘ + F)"
|
||||||
onClick={itemForkBtnClick}
|
onClick={onForkBtnClick}
|
||||||
>
|
>
|
||||||
Fork<span class="show-when-selected">(Ctrl/⌘ + F)</span>
|
Fork<span class="show-when-selected">(Ctrl/⌘ + F)</span>
|
||||||
</a>
|
</a>
|
||||||
) : null}
|
) : null}
|
||||||
{itemRemoveBtnClick ? (
|
{onRemoveBtnClick ? (
|
||||||
<a
|
<a
|
||||||
class="js-saved-item-tile__remove-btn saved-item-tile__btn hint--left"
|
class="js-saved-item-tile__remove-btn saved-item-tile__btn hint--left"
|
||||||
aria-label="Remove"
|
aria-label="Remove"
|
||||||
onClick={itemRemoveBtnClick}
|
onClick={onRemoveBtnClick}
|
||||||
>
|
>
|
||||||
X
|
X
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user