Skip to content

Commit

Permalink
change letter icon to open_letter
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyAH committed Jun 21, 2023
1 parent 741744b commit 85514fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/components/svg_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SvgComponent < ApplicationComponent
gear: :gear,
map: :map,
receipt_percent: :receipt_percent,
letter: :receipt_percent,
letter: :open_letter,
tag: :tag
}.with_indifferent_access.freeze

Expand Down Expand Up @@ -78,4 +78,10 @@ def cart
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z" />
SVG
end

def open_letter
<<~SVG
<path stroke-linecap="round" stroke-linejoin="round" d="M21.75 9v.906a2.25 2.25 0 01-1.183 1.981l-6.478 3.488M2.25 9v.906a2.25 2.25 0 001.183 1.981l6.478 3.488m8.839 2.51l-4.66-2.51m0 0l-1.023-.55a2.25 2.25 0 00-2.134 0l-1.022.55m0 0l-4.661 2.51m16.5 1.615a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V8.844a2.25 2.25 0 011.183-1.98l7.5-4.04a2.25 2.25 0 012.134 0l7.5 4.04a2.25 2.25 0 011.183 1.98V19.5z" />
SVG
end
end

0 comments on commit 85514fd

Please sign in to comment.