Skip to content

Commit 709fbf5

Browse files
author
Lewis Youl
committed
feat: add twiter + download icons to image export modal
1 parent 7200362 commit 709fbf5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

app/views/modals/snippets/picture.html.erb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
</div>
88

99
<div class="flex justify-end mt-4">
10-
<%= button_tag('Tweet', class: 'button--cta-tertiary mr-2', data: { action: 'click->picture#tweet' }) %>
11-
<%= button_tag('Download', class: 'button--cta-tertiary', data: { action: 'click->picture#download' }) %>
10+
<%= button_tag class: 'button--cta-tertiary mr-2', data: { action: 'click->picture#tweet' } do %>
11+
<%= render partial: 'shared/icons/twitter', locals: { classes: 'h-5 w-5 mr-1' } %>
12+
<span class="font-normal">Tweet</span>
13+
<% end %>
14+
15+
<%= button_tag class: 'button--cta-tertiary', data: { action: 'click->picture#download' } do %>
16+
<%= render partial: 'shared/icons/download', locals: { classes: 'h-5 w-5 mr-1' } %>
17+
<span class="font-normal">Download</span>
18+
<% end %>
1219
</div>
1320
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<svg class="<%= classes %>" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2+
<path fill-rule="evenodd" d="M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd"></path>
3+
</svg>

0 commit comments

Comments
 (0)