Skip to content

Commit 4940ef2

Browse files
committed
Remove unnecessary plain calls for label ivars in pagination
Phlex renders ivars directly in tag blocks without plain.
1 parent a626a9d commit 4940ef2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/ruby_ui/data_table/data_table_pagination.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@ def build_query(hash)
6060
def prev_item
6161
if current <= 1
6262
li do
63-
span(class: "opacity-50 pointer-events-none px-3 h-9 inline-flex items-center text-sm") { plain @prev_label }
63+
span(class: "opacity-50 pointer-events-none px-3 h-9 inline-flex items-center text-sm") { @prev_label }
6464
end
6565
else
66-
render RubyUI::PaginationItem.new(href: page_href(current - 1)) { plain @prev_label }
66+
render RubyUI::PaginationItem.new(href: page_href(current - 1)) { @prev_label }
6767
end
6868
end
6969

7070
def next_item
7171
if current >= total
7272
li do
73-
span(class: "opacity-50 pointer-events-none px-3 h-9 inline-flex items-center text-sm") { plain @next_label }
73+
span(class: "opacity-50 pointer-events-none px-3 h-9 inline-flex items-center text-sm") { @next_label }
7474
end
7575
else
76-
render RubyUI::PaginationItem.new(href: page_href(current + 1)) { plain @next_label }
76+
render RubyUI::PaginationItem.new(href: page_href(current + 1)) { @next_label }
7777
end
7878
end
7979

0 commit comments

Comments
 (0)