Skip to content

Commit

Permalink
Hide more like this from cards view
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Nov 11, 2022
1 parent 42cfa19 commit 3e2d8f7
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions searchlib/components/Result/CardItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const CardItemComponent = withSearch(({ setFilter, removeFilter }) => ({
<DateTime format="DATE_MED" value={result.issued} />
</Card.Meta>
</Card.Content>
<Card.Content extra className="controls">
{/* <Card.Content extra className="controls">
<Card.Meta>
<Button
compact
Expand All @@ -144,18 +144,7 @@ const CardItemComponent = withSearch(({ setFilter, removeFilter }) => ({
>
more like this
</Button>
{/* <Button */}
{/* compact */}
{/* floated="right" */}
{/* color="red" */}
{/* size="mini" */}
{/* onClick={() => { */}
{/* removeFilter('moreLikeThis'); */}
{/* setFilter('lessLikeThis', result._original._id, 'none'); */}
{/* }} */}
{/* > */}
{/* less like this */}
{/* </Button> */}
<div className="card-icons">
{Object.keys(clusters).map((cluster, index) => (
<Button
Expand All @@ -177,11 +166,24 @@ const CardItemComponent = withSearch(({ setFilter, removeFilter }) => ({
))}
</div>
</Card.Meta>
</Card.Content>
</Card.Content> */}
</Card>
);
});

const CardItem = (props) => <CardItemComponent {...props} />;

export default CardItem;

// {/* <Button */}
// {/* compact */}
// {/* floated="right" */}
// {/* color="red" */}
// {/* size="mini" */}
// {/* onClick={() => { */}
// {/* removeFilter('moreLikeThis'); */}
// {/* setFilter('lessLikeThis', result._original._id, 'none'); */}
// {/* }} */}
// {/* > */}
// {/* less like this */}
// {/* </Button> */}

0 comments on commit 3e2d8f7

Please sign in to comment.