From 4345a627ca61e95890eba8bf954acb71e0807d75 Mon Sep 17 00:00:00 2001 From: Diana Zubova <dzubova@gitlab.com> Date: Mon, 13 Jun 2022 08:17:20 +0000 Subject: [PATCH] Migrate button on subscribable banner --- ee/app/views/layouts/header/_ee_subscribable_banner.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/app/views/layouts/header/_ee_subscribable_banner.html.haml b/ee/app/views/layouts/header/_ee_subscribable_banner.html.haml index ad119e7ae9ed4..d8a44095f63f9 100644 --- a/ee/app/views/layouts/header/_ee_subscribable_banner.html.haml +++ b/ee/app/views/layouts/header/_ee_subscribable_banner.html.haml @@ -13,5 +13,5 @@ = link_to_button_style(path: upgrade_subscription_path, track_property: 'upgrade') - else = link_to_button_style(path: renew_subscription_path, track_property: 'renew') - %button{ type: 'button', data: { track_event: 'click_text', track_label: 'subscribable_action', track_property: 'thats_ok' }, 'aria-label' => 'Dismiss', class: 'btn gl-button btn-default js-close gl-mb-2' } + = render Pajamas::ButtonComponent.new(category: :secondary, button_options: { class: 'js-close gl-mb-2', 'aria-label': _('Dismiss'), data: { track_event: 'click_text', track_label: 'subscribable_action', track_property: 'thats_ok' } }) do = _("That's OK, I don't want to renew") -- GitLab