Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
dont navigate in edit & interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jun 23, 2022
1 parent 423c7c9 commit 94050c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/components/manage/Blocks/ImageCards/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ const Cards = (props) => {
);

const handleNavigate = (link) => {
history.push(flattenToAppURL(link));
if (!props.editable) {
history.push(flattenToAppURL(link));
}
};

return cards && cards.length > 0 ? (
<div className={cx('ui fluid cards', gridSize)}>
{cards.map((item) => (
Expand Down
12 changes: 6 additions & 6 deletions src/components/manage/Blocks/ImageCards/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
}
}

.tile-listing-title:hover {
p {
color: #cc4400;
}
}

.tile-listing-description {
color: #666;
font-size: 14px;
}

.navigation-card:hover {
.tile-listing-title {
color: #cc4400;
}
}

0 comments on commit 94050c5

Please sign in to comment.