Skip to content

Commit

Permalink
action helper in public-activity-card-small
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumsnChocolate committed Nov 3, 2024
1 parent a3d32a1 commit 2ea0d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/cards/public-activity-card-small.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
itemscope
itemtype='https://schema.org/Event'
class='card-body p-0'
{{action action}}
{{on 'click' @action}}
>
<div class='d-flex' data-test-public-activity-card>
<div
Expand Down
8 changes: 4 additions & 4 deletions app/components/public/index/activities.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<div class="row">
{{#each activityPair as |activity|}}
<div class="{{if doubleActivityColumns "col-md-6" "col-md-12"}}">
{{cards/public-activity-card-small
activity
action=(action 'openModal' activity)
}}
<Cards::PublicActivityCardSmall
@activity={{activity}}
@action={{fn this.openModal activity}}>
</Cards::PublicActivityCardSmall>
</div>
{{/each}}
</div>
Expand Down

0 comments on commit 2ea0d64

Please sign in to comment.