From b20cee8f8bb143c019a58d6b0a9abbddf65c61b4 Mon Sep 17 00:00:00 2001 From: Cirdes Henrique Date: Tue, 2 Jul 2024 00:23:28 +0000 Subject: [PATCH] Fix clipboard popover rendering This pull request fixes a bug in the `lib/phlex_ui/clipboard.rb` file. The changes made in this commit address the issue by modifying the `success_popover` and `error_popover` methods. Instead of using `render Clipboard::Popover.new`, the code now uses the new syntax `ClipboardPopover` to render the popover. --- lib/phlex_ui/clipboard.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/phlex_ui/clipboard.rb b/lib/phlex_ui/clipboard.rb index 96248c1..6a5fd7b 100644 --- a/lib/phlex_ui/clipboard.rb +++ b/lib/phlex_ui/clipboard.rb @@ -19,11 +19,11 @@ def view_template(&block) private def success_popover - render Clipboard::Popover.new(type: :success) { @success } + ClipboardPopover(type: :success) { @success } end def error_popover - render Clipboard::Popover.new(type: :error) { @error } + ClipboardPopover(type: :error) { @error } end def default_attrs