Skip to content

Commit

Permalink
Component: Add bell option to SvgComponent
Browse files Browse the repository at this point in the history
- #1511
- #1187

Co-authored-by: Kelly Hong <[email protected]>
  • Loading branch information
zspencer and KellyAH committed Jun 28, 2023
1 parent 127ccd5 commit 155996c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/components/svg_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class SvgComponent < ApplicationComponent
gear: :gear,
map: :map,
receipt_percent: :receipt_percent,
bell: :ringing_bell,
tag: :tag
}.with_indifferent_access.freeze

Expand Down Expand Up @@ -77,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 ringing_bell
<<~SVG
<path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0M3.124 7.5A8.969 8.969 0 015.292 3m13.416 0a8.969 8.969 0 012.168 4.5" />
SVG
end
end

0 comments on commit 155996c

Please sign in to comment.