Skip to content

Commit

Permalink
use link text component to implement popup link component
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jul 23, 2023
1 parent 638b9e8 commit 5e9e7d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions app/components/popup_link_text_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

class PopupLinkTextComponent < LinkTextComponent

def initialize(text:)
super(text: text, icon: 'icons/popup-link')
end

end

0 comments on commit 5e9e7d3

Please sign in to comment.